Re: [R-es] Conexion a SQLServer

2019-01-29 Thread Raúl Vaquerizo

Hola,

Yo empleo RODBC, previamente he creado el origen de datos ODBC en mi 
equipo y hago:


library(RODBC)

odbc_con <- odbcConnect("origenODBC")

siniestros <- sqlQuery(odbc_con,"
  SELECT  *
  FROM tal.tal")
odbcCloseAll()

Con VPN en remoto y demás, sin problemas. Saludos.


 Mensaje Original 
Asunto: Re: [R-es] Conexion a SQLServer
Fecha: 29/01/2019 19:17
De: Javier Marcuzzi 
Destinatario: Jesús Para Fernández 
Cc: Lista R 

Estimado Jesús Para Fernández

Yo se usar SQL Server con R, es más, ODBC es obsoleto por decirlo de 
alguna

forma, incluso RServer viene dentro de Sqlserver.

Javier Rubén Marcuzzi

El mar., 29 ene. 2019 a las 10:23, Jesús Para Fernández (<
j.para.fernan...@hotmail.com>) escribió:


Buenas,

Alguno usa alguno de los paquetes de Microsoft R para la conexion a SQL
Server? De ser asi, que paquete y que comandos usais?

Yo hasta ahora he usado odbc, de Rstudio, pero me da siempre problemas 
con

el tipo de datos que tiene SQLServer ...

Un saludo
Jesús

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es



[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Jeff Newmiller

On Tue, 29 Jan 2019, Alan Feuerbacher wrote:


On 1/28/2019 7:51 PM, Jeff Newmiller wrote:
If you forge on with your preconceptions of how such a simulation should be 
implemented then you will be able to reproduce your failure just as 
spectacularly using R as you did using Octave.


I think I've come to the same conclusion. :-)

It is crucial to employ vectorization of your algorithms if you want good 
performance with either Octave or R. That vectorization may either be over 
time or over separate simulations.


Please explain further, if you don't mind. My background is not in 
programming, but in analog microchip circuit design (I'm now retired). Thus 
I'm a user of circuit simulators, not a programmer of them. Also, I'm running 
this stuff on my home computers, either Linux or Windows machines.


I am running simulations of a million cases of power plant performance over 
25 years in about a minute. I know someone who used R to simulate a CFD 
river flow problem in a class in a few minutes, while others using Fortran 
or Matlab were struggling to get comparable runs completed in many hours. I 
believe the difference was in how the data were structured and manipulated 
more than the language that was being used. I think the strong capabilities 
for presenting results using R makes using it advantageous over Octave, 
though.


After my failed attempt at using Octave, I realized that most likely the main 
contributing factor was that I was not able to figure out an efficient data 
structure to model one person. But C lent itself perfectly to my idea of how 
to go about programming my simulation. So here's a simplified pseudocode sort 
of example of what I did:


Don't model one person... model an array of people.


To model a single reproducing woman I used this C construct:

typedef struct woman {
 int isAlive;
 int isPregnant;
 double age;
 . . .
} WOMAN;


# e.g.
Nwomen <- 100
women <- data.frame( isAlive = rep( TRUE, Nwomen )
   , isPregnant = rep( FALSE, Nwomen )
   , age = rep( 20, Nwomen )
   )

Then I allocated memory for a big array of these things, using the C malloc() 
function, which gave me the equivalent of this statement:


WOMAN women[NWOMEN];  /* An array of NWOMEN woman-structs */

After some initialization I set up two loops:

for( j=0; j

for ( j in seq.int( numberOfYears ) {
  # let vectorized data storage automatically handle the other for loop
  women <- updateWomen( women )
}

The function updateWomen() figures out things like whether the woman becomes 
pregnant or gives birth on a given day, dies, etc.


You can use your "fixed size" allocation strategy with flags indicating 
whether specific rows are in use, or you can only work with valid rows and 
add rows as needed for children... best to compute a logical vector that 
identifies all of the birthing mothers as a subset of the data frame, and 
build a set of children rows using the birthing mothers data frame as 
input, and then rbind the new rows to the updated women dataframe as 
appropriate. The most clear approach for individual decision calculations 
is the use of the vectorized "ifelse" function, though under certain 
circumstances putting an indexed subset on the left side of an assignment 
can modify memory "in place" (the functional-programming restriction 
against this is probably a foreign idea to a dyed-in-the-wool C 
programmer, but R usually prevents you from modifying the variable that 
was input to a function, automatically making a local copy of the input as 
needed in order to prevent such backwash into the caller's context).


I added other refinements that are not relevant here, such as random 
variations of various parameters, using the GNU Scientific Library random 
number generator functions.


R has quite sophisticated random number generation by default.

If you can suggest a data construct in R or Octave that does something like 
this, and uses your idea of vectorization, I'd like to hear it. I'd like to 
implement it and compare results with my C implementation.


If your problems truly need a compiled language, the Rcpp package lets you 
mix C++ with R quite easily and then you get the best of both worlds. (C 
and Fortran are supported, but they are a bit more finicky to setup than 
C++).


I don't know the answer to that, but perhaps you can help decide.

Alan


On January 28, 2019 4:00:07 PM PST, Alan Feuerbacher  
wrote:

On 1/28/2019 4:20 PM, Rolf Turner wrote:


On 1/29/19 10:05 AM, Alan Feuerbacher wrote:


Hi,

I recently learned of the existence of R through a physicist friend
who uses it in his research. I've used Octave for a decade, and C

for

35 years, but would like to learn R. These all have advantages and
disadvantages for certain tasks, but as I'm new to R I hardly know

how

to evaluate them. Any suggestions?


* C is fast, but with a syntax that is (to my mind) virtually
    incomprehensible.  (You probably think differently about 

Re: [R] how to ref data directly from bls.gov using their api

2019-01-29 Thread Alan Feuerbacher

On 1/29/2019 11:24 AM, Bert Gunter wrote:

Please search on "Bureau of Labor Statistics" at rseek.org.  You will find
several packages and other resources there for doing what you want.


Wow! Thanks!

Again most likely severe overkill for my simple need.

Alan


-- Ber

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Jan 29, 2019 at 9:21 AM Evans, Richard K. (GRC-H000) via R-help <
r-help@r-project.org> wrote:


Hello,

I'd like to generate my own plots of various labor statistics using live
data available at https://www.bls.gov/bls/api_features.htm

This is 10% an R question and 90 % a bls.gov api query question.  Please
forgive me for making this request here but I would be truly grateful for
anyone here on the R mailinglist who can show me how to write a line of R
code that "fetches" the raw data anew from the bls.gov website every time
it runs.

Truest Thanks,
/Rich

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher

On 1/29/2019 8:11 AM, Gabor Grothendieck wrote:

Two additional comments:

- depending on the nature of your problem you may be able to get an
analytic solution using branching processes. I found this approach
successful when I once had to model stem cell growth.


That sounds very interesting! Please see my reply to Jeff Newmiller. Not 
being a mathematician, I have no clue how to go about this but would be 
very interested to learn.



- in addition to NetLogo another alternative to R would be the Julia
language which is motivated to some degree by Octave but is actually
quite different and is particularly suitable in terms of performance
for iterative computations where one iteration depends on the prior
one.


Given my response to Jeff Newmiller, do your comments still apply?

Alan



On Mon, Jan 28, 2019 at 6:32 PM Gabor Grothendieck
 wrote:


R has many similarities to Octave.  Have a look at:

https://cran.r-project.org/doc/contrib/R-and-octave.txt
https://CRAN.R-project.org/package=matconv

On Mon, Jan 28, 2019 at 4:58 PM Alan Feuerbacher  wrote:


Hi,

I recently learned of the existence of R through a physicist friend who
uses it in his research. I've used Octave for a decade, and C for 35
years, but would like to learn R. These all have advantages and
disadvantages for certain tasks, but as I'm new to R I hardly know how
to evaluate them. Any suggestions?

Thanks!

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com






__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-29 Thread Jim Lemon
Hi Hallie,
I tried both the "cccUst" and "cccvc" functions in the "cccrm"
package. While I can get what looks like sensible statistics with the
following example, I am not sure that it can be interpreted as you
wish. For one thing, it assumes that the concordance will be the same
on all variables. I was not able to get a statistic on each variable
separately. Perhaps someone who is more familiar with the package can
offer better advice. Also, check the "hkdf" data frame to ensure that
it looks like your data.

hkdf<-data.frame(rater=rep(1:3,each=24),occasion=rep(rep(1:4,each=6),3),
 var=rep(rep(1:6,4),3),obs=runif(72))
library(cccrm)
cccUst(hkdf,"obs","rater","occasion")
cccvc(hkdf,"obs","rater","occasion")

Jim

On Wed, Jan 30, 2019 at 1:01 PM Jim Lemon  wrote:
>
> Hi Hallie,
> If I understand your email correctly, you have four repeated
> observations by the three raters of the same six variables. This is a
> tougher problem and I can't solve it at the moment. I'll return to
> this later and see if I can offer a solution.
>
>
> Jim

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher

On 1/28/2019 7:51 PM, Jeff Newmiller wrote:

If you forge on with your preconceptions of how such a simulation should be 
implemented then you will be able to reproduce your failure just as 
spectacularly using R as you did using Octave.


I think I've come to the same conclusion. :-)


It is crucial to employ vectorization of your algorithms if you want good 
performance with either Octave or R. That vectorization may either be over time 
or over separate simulations.


Please explain further, if you don't mind. My background is not in 
programming, but in analog microchip circuit design (I'm now retired). 
Thus I'm a user of circuit simulators, not a programmer of them. Also, 
I'm running this stuff on my home computers, either Linux or Windows 
machines.



I am running simulations of a million cases of power plant performance over 25 
years in about a minute. I know someone who used R to simulate a CFD river flow 
problem in a class in a few minutes, while others using Fortran or Matlab were 
struggling to get comparable runs completed in many hours. I believe the 
difference was in how the data were structured and manipulated more than the 
language that was being used. I think the strong capabilities for presenting 
results using R makes using it advantageous over Octave, though.


After my failed attempt at using Octave, I realized that most likely the 
main contributing factor was that I was not able to figure out an 
efficient data structure to model one person. But C lent itself 
perfectly to my idea of how to go about programming my simulation. So 
here's a simplified pseudocode sort of example of what I did:


To model a single reproducing woman I used this C construct:

typedef struct woman {
  int isAlive;
  int isPregnant;
  double age;
  . . .
} WOMAN;

Then I allocated memory for a big array of these things, using the C 
malloc() function, which gave me the equivalent of this statement:


WOMAN women[NWOMEN];  /* An array of NWOMEN woman-structs */

After some initialization I set up two loops:

for( j=0; jThe function updateWomen() figures out things like whether the woman 
becomes pregnant or gives birth on a given day, dies, etc.


I added other refinements that are not relevant here, such as random 
variations of various parameters, using the GNU Scientific Library 
random number generator functions.


If you can suggest a data construct in R or Octave that does something 
like this, and uses your idea of vectorization, I'd like to hear it. I'd 
like to implement it and compare results with my C implementation.



If your problems truly need a compiled language, the Rcpp package lets you mix 
C++ with R quite easily and then you get the best of both worlds. (C and 
Fortran are supported, but they are a bit more finicky to setup than C++).


I don't know the answer to that, but perhaps you can help decide.

Alan



On January 28, 2019 4:00:07 PM PST, Alan Feuerbacher  
wrote:

On 1/28/2019 4:20 PM, Rolf Turner wrote:


On 1/29/19 10:05 AM, Alan Feuerbacher wrote:


Hi,

I recently learned of the existence of R through a physicist friend
who uses it in his research. I've used Octave for a decade, and C

for

35 years, but would like to learn R. These all have advantages and
disadvantages for certain tasks, but as I'm new to R I hardly know

how

to evaluate them. Any suggestions?


* C is fast, but with a syntax that is (to my mind) virtually
    incomprehensible.  (You probably think differently about this.)


I've been doing it long enough that I have little problem with it,
except for pointers. :-)


* In C, you essentially have to roll your own for all tasks; in R,
    practically anything (well ...) that you want to do has already
    been programmed up.  CRAN is a wonderful resource, and there's

more

    on github.

* The syntax of R meshes beautifully with *my* thought patterns;

YMMV.


* Why not just bog in and try R out?  It's free, it's readily

available,

    and there are a number of good online tutorials.


I just installed R on my Linux Fedora system, so I'll do that.

I wonder if you'd care to comment on my little project that prompted
this? As part of another project, I wanted to model population growth
starting from a handful of starting individuals. This is exponential in

the long run, of course, but I wanted to see how a few basic parameters

affected the outcome. Using Octave, I modeled a single person as a
"cell", which in Octave has a good deal of overhead. The program
basically looped over the entire population, and updated each person
according to the parameters, which included random statistical
variations. So when the total population reached, say 10,000, and an
update time of 1 day, the program had to execute 10,000 x 365 update
operations for each year of growth. For large populations, say 100,000,

the program did not return even after 24 hours of run time.

So I switched to C, and used its "struct" declaration and an array of
structs to model the 

Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-29 Thread Jim Lemon
Hi Hallie,
If I understand your email correctly, you have four repeated
observations by the three raters of the same six variables. This is a
tougher problem and I can't solve it at the moment. I'll return to
this later and see if I can offer a solution.


Jim

On Wed, Jan 30, 2019 at 3:56 AM Hallie Kamesch  wrote:
>
> Thank you Jim, for the code, and thank you Jeff for the tutorial PDF.  I've 
> read through the sections and I appreciate the help.
> I'm in way over my head - I don't even understand enough of the vocabulary to 
> ask my question correctly.
> Jim, in your code, I ended up with an entry of 4 observations of 6 variables. 
> I understand how that happened now since I read your code - that helped very 
> much.
> My only problem, that I can't figure out, is how to make it so I have 3 
> raters with 4 observations of 6 variables.
> I really am trying to educate myself enough to not waste your time:  I've 
> ?data.frame, ?sample, ?matrix, ?$names, ?attributes, etc... I read the 
> sections in Jeff's PDF, and the tutorials on datamentor, I'm just not finding 
> how to do this. I'm sorry this is such a newbie question.
> thank you for your time,
> hallie
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher

On 1/28/2019 6:07 PM, William Dunlap wrote:
S (R's predecessor) was designed by and for data analysts.  R generally 
follows that tradition.  I think that simulations such as yours are not 
its strength, although it can make analyzing (graphically and 
numerically) the results of the simulation fun.


At this point I think you're right on all counts.

Alan


Bill Dunlap
TIBCO Software
wdunlap tibco.com 


On Mon, Jan 28, 2019 at 4:00 PM Alan Feuerbacher > wrote:


On 1/28/2019 4:20 PM, Rolf Turner wrote:
 >
 > On 1/29/19 10:05 AM, Alan Feuerbacher wrote:
 >
 >> Hi,
 >>
 >> I recently learned of the existence of R through a physicist friend
 >> who uses it in his research. I've used Octave for a decade, and
C for
 >> 35 years, but would like to learn R. These all have advantages and
 >> disadvantages for certain tasks, but as I'm new to R I hardly
know how
 >> to evaluate them. Any suggestions?
 >
 > * C is fast, but with a syntax that is (to my mind) virtually
 >    incomprehensible.  (You probably think differently about this.)

I've been doing it long enough that I have little problem with it,
except for pointers. :-)

 > * In C, you essentially have to roll your own for all tasks; in R,
 >    practically anything (well ...) that you want to do has already
 >    been programmed up.  CRAN is a wonderful resource, and there's
more
 >    on github.
  >
 > * The syntax of R meshes beautifully with *my* thought patterns;
YMMV.
 >
 > * Why not just bog in and try R out?  It's free, it's readily
available,
 >    and there are a number of good online tutorials.

I just installed R on my Linux Fedora system, so I'll do that.

I wonder if you'd care to comment on my little project that prompted
this? As part of another project, I wanted to model population growth
starting from a handful of starting individuals. This is exponential in
the long run, of course, but I wanted to see how a few basic parameters
affected the outcome. Using Octave, I modeled a single person as a
"cell", which in Octave has a good deal of overhead. The program
basically looped over the entire population, and updated each person
according to the parameters, which included random statistical
variations. So when the total population reached, say 10,000, and an
update time of 1 day, the program had to execute 10,000 x 365 update
operations for each year of growth. For large populations, say 100,000,
the program did not return even after 24 hours of run time.

So I switched to C, and used its "struct" declaration and an array of
structs to model the population. This allowed the program to
complete in
under a minute as opposed to 24 hours+. So in line with your
comments, C
is far more efficient than Octave.

How do you think R would fare in this simulation?

Alan


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

__
R-help@r-project.org  mailing list --
To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher

On 1/28/2019 5:17 PM, Bert Gunter wrote:
I would say your question is foolish -- you disagree no doubt! -- 
because the point of using R (or Octave or C++) is to take advantage of 
the packages (= "libraries" in some languages; a library is something 
different in R) it (or they) offers to simplify your task. Many of R's 
libraries are written in C (or Fortran) an thus **are** fast as well as 
having task-appropriate functionality and UI's .


Yes, I'm well aware of the libraries in Octave. But so far as I was able 
to see, none of them fit my needs. I used Octave at first because I'm 
familiar with it. But far from an expert.


So I think instead of pursuing this discussion you would do well to 
search. I find rseek.org  to be especially good for 
this sort of thing. Searching there on "demography" brought up what 
appeared to be many appropriate hits -- including the "demography" 
package! -- which you could then examine to see whether and to what 
extent they provide the functionality you seek.


I looked over the demography package, and it indeed appears to do what I 
want. But it seems to be far more complicated than my simple problem, 
and has a large learning curve.


Alan


Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along 
and sticking things into it."

-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Mon, Jan 28, 2019 at 4:00 PM Alan Feuerbacher > wrote:


On 1/28/2019 4:20 PM, Rolf Turner wrote:
 >
 > On 1/29/19 10:05 AM, Alan Feuerbacher wrote:
 >
 >> Hi,
 >>
 >> I recently learned of the existence of R through a physicist friend
 >> who uses it in his research. I've used Octave for a decade, and
C for
 >> 35 years, but would like to learn R. These all have advantages and
 >> disadvantages for certain tasks, but as I'm new to R I hardly
know how
 >> to evaluate them. Any suggestions?
 >
 > * C is fast, but with a syntax that is (to my mind) virtually
 >    incomprehensible.  (You probably think differently about this.)

I've been doing it long enough that I have little problem with it,
except for pointers. :-)

 > * In C, you essentially have to roll your own for all tasks; in R,
 >    practically anything (well ...) that you want to do has already
 >    been programmed up.  CRAN is a wonderful resource, and there's
more
 >    on github.
  >
 > * The syntax of R meshes beautifully with *my* thought patterns;
YMMV.
 >
 > * Why not just bog in and try R out?  It's free, it's readily
available,
 >    and there are a number of good online tutorials.

I just installed R on my Linux Fedora system, so I'll do that.

I wonder if you'd care to comment on my little project that prompted
this? As part of another project, I wanted to model population growth
starting from a handful of starting individuals. This is exponential in
the long run, of course, but I wanted to see how a few basic parameters
affected the outcome. Using Octave, I modeled a single person as a
"cell", which in Octave has a good deal of overhead. The program
basically looped over the entire population, and updated each person
according to the parameters, which included random statistical
variations. So when the total population reached, say 10,000, and an
update time of 1 day, the program had to execute 10,000 x 365 update
operations for each year of growth. For large populations, say 100,000,
the program did not return even after 24 hours of run time.

So I switched to C, and used its "struct" declaration and an array of
structs to model the population. This allowed the program to
complete in
under a minute as opposed to 24 hours+. So in line with your
comments, C
is far more efficient than Octave.

How do you think R would fare in this simulation?

Alan


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

__
R-help@r-project.org  mailing list --
To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help: mediation with multiply imputed data

2019-01-29 Thread Hanna Heckendorf

Hello R Users,

I want to conduct a parallel mediation analysis using bias corrected 
bootstrapping with multiply imputed data.


I already installed the package bmem, but to me it seems that I can only 
calculate the mediation model when calculating the multiple imputations 
at the same time.


The problem ist that I already imputed data and conducted some analyses 
with that data. Moreover I included some variables in my imputation 
model that I will not use in the mediation analysis. Therefore I don't 
want to impute again.


Do you maybe know how I could do the mediation analysis (preferably with 
bootstrapping) on multiply imputed datasets?


Any help is greatly appreciated.


Thank you very much,

Sincerly, Hanna

--
Hanna Heckendorf, M.Sc. Psych.

Leuphana University of Lüneburg
Department of Health Psychology
Institute of Psychology
Universitätsallee 1, C1.113
21335 Lüneburg - Germany
Fon +49.4131.677-2721

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] Conexion a SQLServer

2019-01-29 Thread José María Mateos
On Tue, Jan 29, 2019 at 01:23:12PM +, Jesús Para Fernández wrote:

> Buenas,
>
> Alguno usa alguno de los paquetes de Microsoft R para la conexion a
> SQL Server? De ser asi, que paquete y que comandos usais?
>
> Yo hasta ahora he usado odbc, de Rstudio, pero me da siempre problemas
> con el tipo de datos que tiene SQLServer ...

Yo siempre he usado el paquete RSQLServer, instalado desde CRAN, y sin 
problemas.

Ej:

library(RSQLServer)
mydb <- dbConnect(RSQLServer::SQLServer(), server = "hostname",
  properties = list(useNTLMv2 = "false",
user = "username",
password = "password")
)
# dbGetQuery is equivalent to these two lines
req <- dbSendQuery(mydb, "SELECT * FROM TABLENAME")
dd <- fetch(req, -1)
dbDisconnect(mydb)

Saludos,

-- 
José María (Chema) Mateos || https://rinzewind.org

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] BioStatFLOSS 4.0

2019-01-29 Thread Javier Marcuzzi
Yo valoro el tiempo que han dedicado y donado al resto de las personas, más
aún en cuestiones de salud.

Felicitaciones

Javier Rubén Marcuzzi

El mar., 29 ene. 2019 a las 6:57, 
escribió:

> Hola.
>
> Os informo de que hemos publicado una nueva versión (la 4) de BioStatFLOSS.
>
> Para el que no lo conozca, se trata de una recopilación de software para
> Windows. Es una "colección" de programas de utilidad para la realización de
> estudios estadísticos en general (y bioestadísticos/biomédicos en
> particular) en el que "la estrella" es (of course) R. La principal
> característica es que son versiones portables (no es necesario instalarlas
> por lo que no son "agresivas" con el sistema), independientes una de otras
> y con un lanzador común para facilitar la tarea de ejecutarlas.
>
> Para descargarlo, accederemos a la web del Proyecto
> http://www.sergas.es/Saude-publica/BioStatFLOSS?idioma=es y en la sección
> de DESCARGA (a la derecha) elegiremos uno de los mirror (es un fichero de
> 2'6Gb). Una vez realizada dicha descarga (ya sea en el disco duro o en una
> unidad externa de disco o pendrive), se descomprime el fichero y ya está
> listo para usar. Entramos en la carpeta resultante y ejecutamos el fichero
> BioStatFLOSS.EXE.
>
>
> NOTAS:
> - La versión de R es la 3.5.2 e incluye RCommander.
> - Se puede "transportar" cualquiera de los programas independientemente de
> los otros (es decir, si sólo nos interesa R, pues copiamos sólo esa carpeta
> -y lanzamos el programa en cuestión con el fichero .BAT correspondiente-).
> - El Lanzador está programado en FreePascal (Lazarus) y el código fuentese
> encuentra en la carpeta BioStatFLOSS.
> - Es poco intrusivo con sistemas "protegidos" (no es necesario ser
> Administrador del sistema ni instalar nada en el equipo).
> - Resulta muy cómodo a la hora de utilizarlo para formación (se copia en
> los equipos del aula, o se entrega en un pendrive, y está listo para
> trabajar).
> - Dependiendo del antivirus que tengáis instalado, el proceso de
> descompresión puede requerir de bastante paciencia (son MUCHOS ficheros).
>
> Es de agradecer cualquier comentario/sugerencia/feedback.
>
>
> Pd.- Gracias a la Asociación MELISA por su colaboración (
> https://www.melisa.gal/)
>
>
> Un Saludo,
> --
> Miguel Ángel Rodríguez Muíños
> Coordinador del Proyecto BioStatFLOSS
> Dirección Xeral de Saúde Pública
> Consellería de Sanidade
> Xunta de Galicia
> http://dxsp.sergas.es
>
>
>
>
>
>
>
>
>
>
>
> 
>
> Nota: A información contida nesta mensaxe e os seus posibles documentos
> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
> por favor elimínea. A distribución ou copia desta mensaxe non está
> autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos
> adjuntos es privada y confidencial y está dirigida únicamente a su
> destinatario/a. Si usted no es el/la destinatario/a original de este
> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
> está autorizada.
>
> See more languages: http://www.sergas.es/aviso-confidencialidad
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R] R code for fixed effect multinomial logistic regression and experimental data

2019-01-29 Thread Bhubaneswor Dhakal
Hi R support group team

I would like to contribute on two issues posted last days:

1. Addressing question by Valerio [Valerio Leone Sciabolazza <
sciabola...@gmail.com>]: [R] how to run a multinomial logistic regression
with fixed effects.
Application of fixed effect multinomial logistic regression (FE MNLR) has
many drawbacks as explained in literatures. This could be a reason that R
experts did not work on FE MNLR.
Useful references:
A. Green 2013.  15 Panel Data Models for Discrete Choice.
http://people.stern.nyu.edu/wgreene/Econometrics/Greene-PanelDataModelsforDiscreteChoice.pdf
B.  Xavier D’Haultfœuille and Alessandro Iaria 2015. A Convenient Method
for the Estimation of the Multinomial Logit Model with Fixed Effects.

2. Solutions my posts: a. Regarding my experimental data dealing problem in
R, I separately developed network graphs of treated and untreated
groups which made me easier to compare and understand the intervention
effect difference. b. Regarding my missing data handling problem, console
script accounted the missing data issue but I had forgoten filling "NA" in
a box of Rstudio while importing data.

Thanks for your attempt to resolve my R programing problem.
Cheers

B. Dhakal

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread Javier Marcuzzi
Si, no queda mal, lo único que sale de R hacia html y JavaScript, no había
pensado en eso. Yo supe utilizar esa librería de JavaScript, el problema es
cuándo son una cantidad de datos un poquito grande, ya no recuerdo en
cuánto estaba el caso que me toco, pero se abandonó JavaScript por
problemas de rendimientos, en pruebas todo lindo, con todos los datos, …,
imposible.

Javier Rubén Marcuzzi

El mar., 29 ene. 2019 a las 18:11, Juan Abasolo ()
escribió:

> Buenísimo!
> Mil gracias. Muchísimo más facil que pedir disculpas. Me pongo a ello.
>
>
> Hau idatzi du Carlos Ortega (c...@qualityexcellence.es) erabiltzaileak
> (2019
> urt. 29, ar. (21:09)):
>
> > Hola,
> >
> > Sí, puedes hacerlo con un widget "datatable" que puedes incluir en un
> > informe RMarkdown.
> > Mira el ejemplo aquí:
> >
> > http://www.htmlwidgets.org/showcase_datatables.html
> > https://rstudio.github.io/DT/
> >
> > Saludos,
> > Carlos Ortega
> > www.qualityexcellence.es
> >
> > El mar., 29 ene. 2019 a las 10:44, Juan Abasolo ()
> > escribió:
> >
> >> Buenas, erreros;
> >> Quiero pasar unas tablas resumen (data.frame) para que las investigue
> otra
> >> gente. Necesitaría que puedan pinchar en una columna y que se ordene
> según
> >> los valores de esa columna y así columna a columna. Podría generar sin
> >> dificultad tantas tablas ordenadas como columnas tiene el df, pero no
> >> sería
> >> práctico para esta gente.
> >>
> >> Si hay alguna solución evidente y fácil, agradecería que la
> compartieran.
> >> Si no, tranquilos, la decisión está en sopesar la dificultad de hacerlo
> y
> >> la dificultad de pedir disculpas.
> >>
> >> Muchas gracias
> >>
> >> --
> >> Juan Abasolo
> >>
> >> Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
> >> Bilboko Hezkuntza Fakultatea
> >> Euskal Herriko Unibertsitatea
> >> UPV/EHU
> >>
> >> Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
> >>
> >> T: (+34) 94 601 7567
> >> Telegram: @JuanAbasolo
> >> Skype: abasolo72
> >>
> >> Tutoretza ordutegia 
> >>
> >> [[alternative HTML version deleted]]
> >>
> >> ___
> >> R-help-es mailing list
> >> R-help-es@r-project.org
> >> https://stat.ethz.ch/mailman/listinfo/r-help-es
> >>
> >
> >
> > --
> > Saludos,
> > Carlos Ortega
> > www.qualityexcellence.es
> >
>
>
> --
> Juan Abasolo
>
> Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
> Bilboko Hezkuntza Fakultatea
> Euskal Herriko Unibertsitatea
> UPV/EHU
>
> Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
>
> T: (+34) 94 601 7567
> Telegram: @JuanAbasolo
> Skype: abasolo72
>
> Tutoretza ordutegia 
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread Juan Abasolo
Buenísimo!
Mil gracias. Muchísimo más facil que pedir disculpas. Me pongo a ello.


Hau idatzi du Carlos Ortega (c...@qualityexcellence.es) erabiltzaileak (2019
urt. 29, ar. (21:09)):

> Hola,
>
> Sí, puedes hacerlo con un widget "datatable" que puedes incluir en un
> informe RMarkdown.
> Mira el ejemplo aquí:
>
> http://www.htmlwidgets.org/showcase_datatables.html
> https://rstudio.github.io/DT/
>
> Saludos,
> Carlos Ortega
> www.qualityexcellence.es
>
> El mar., 29 ene. 2019 a las 10:44, Juan Abasolo ()
> escribió:
>
>> Buenas, erreros;
>> Quiero pasar unas tablas resumen (data.frame) para que las investigue otra
>> gente. Necesitaría que puedan pinchar en una columna y que se ordene según
>> los valores de esa columna y así columna a columna. Podría generar sin
>> dificultad tantas tablas ordenadas como columnas tiene el df, pero no
>> sería
>> práctico para esta gente.
>>
>> Si hay alguna solución evidente y fácil, agradecería que la compartieran.
>> Si no, tranquilos, la decisión está en sopesar la dificultad de hacerlo y
>> la dificultad de pedir disculpas.
>>
>> Muchas gracias
>>
>> --
>> Juan Abasolo
>>
>> Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
>> Bilboko Hezkuntza Fakultatea
>> Euskal Herriko Unibertsitatea
>> UPV/EHU
>>
>> Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
>>
>> T: (+34) 94 601 7567
>> Telegram: @JuanAbasolo
>> Skype: abasolo72
>>
>> Tutoretza ordutegia 
>>
>> [[alternative HTML version deleted]]
>>
>> ___
>> R-help-es mailing list
>> R-help-es@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-help-es
>>
>
>
> --
> Saludos,
> Carlos Ortega
> www.qualityexcellence.es
>


-- 
Juan Abasolo

Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
Bilboko Hezkuntza Fakultatea
Euskal Herriko Unibertsitatea
UPV/EHU

Sarriena auzoa z/g 48940 - Leioa (Bizkaia)

T: (+34) 94 601 7567
Telegram: @JuanAbasolo
Skype: abasolo72

Tutoretza ordutegia 

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread Carlos Ortega
Sí.
https://github.com/rstudio/DT

De los autores de Shiny y de RMarkdown...

Saludos,
Carlos Ortega
www.qualityexcellence.es


El mar., 29 ene. 2019 a las 21:13, daniel () escribió:

> ¿ DT de RStudio? https://rstudio.github.io/DT/
>
>
> El mar., 29 de ene. de 2019 a la(s) 17:02, Javier Marcuzzi (
> javier.ruben.marcu...@gmail.com) escribió:
>
> > Estimado Juan Abasolo
> >
> > Creo que es imposible, por ahí podría haber un programa que junto a R,
> algo
> > muy rebuscado, por ejemplo creando algo con tk (como Rcmdr).
> >
> > Javier Rubén Marcuzzi
> >
> > El mar., 29 ene. 2019 a las 6:44, Juan Abasolo ()
> > escribió:
> >
> > > Buenas, erreros;
> > > Quiero pasar unas tablas resumen (data.frame) para que las investigue
> > otra
> > > gente. Necesitaría que puedan pinchar en una columna y que se ordene
> > según
> > > los valores de esa columna y así columna a columna. Podría generar sin
> > > dificultad tantas tablas ordenadas como columnas tiene el df, pero no
> > sería
> > > práctico para esta gente.
> > >
> > > Si hay alguna solución evidente y fácil, agradecería que la
> compartieran.
> > > Si no, tranquilos, la decisión está en sopesar la dificultad de
> hacerlo y
> > > la dificultad de pedir disculpas.
> > >
> > > Muchas gracias
> > >
> > > --
> > > Juan Abasolo
> > >
> > > Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
> > > Bilboko Hezkuntza Fakultatea
> > > Euskal Herriko Unibertsitatea
> > > UPV/EHU
> > >
> > > Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
> > >
> > > T: (+34) 94 601 7567
> > > Telegram: @JuanAbasolo
> > > Skype: abasolo72
> > >
> > > Tutoretza ordutegia 
> > >
> > > [[alternative HTML version deleted]]
> > >
> > > ___
> > > R-help-es mailing list
> > > R-help-es@r-project.org
> > > https://stat.ethz.ch/mailman/listinfo/r-help-es
> > >
> >
> > [[alternative HTML version deleted]]
> >
> > ___
> > R-help-es mailing list
> > R-help-es@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-help-es
> >
>
>
> --
> Daniel
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>


-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread daniel
¿ DT de RStudio? https://rstudio.github.io/DT/


El mar., 29 de ene. de 2019 a la(s) 17:02, Javier Marcuzzi (
javier.ruben.marcu...@gmail.com) escribió:

> Estimado Juan Abasolo
>
> Creo que es imposible, por ahí podría haber un programa que junto a R, algo
> muy rebuscado, por ejemplo creando algo con tk (como Rcmdr).
>
> Javier Rubén Marcuzzi
>
> El mar., 29 ene. 2019 a las 6:44, Juan Abasolo ()
> escribió:
>
> > Buenas, erreros;
> > Quiero pasar unas tablas resumen (data.frame) para que las investigue
> otra
> > gente. Necesitaría que puedan pinchar en una columna y que se ordene
> según
> > los valores de esa columna y así columna a columna. Podría generar sin
> > dificultad tantas tablas ordenadas como columnas tiene el df, pero no
> sería
> > práctico para esta gente.
> >
> > Si hay alguna solución evidente y fácil, agradecería que la compartieran.
> > Si no, tranquilos, la decisión está en sopesar la dificultad de hacerlo y
> > la dificultad de pedir disculpas.
> >
> > Muchas gracias
> >
> > --
> > Juan Abasolo
> >
> > Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
> > Bilboko Hezkuntza Fakultatea
> > Euskal Herriko Unibertsitatea
> > UPV/EHU
> >
> > Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
> >
> > T: (+34) 94 601 7567
> > Telegram: @JuanAbasolo
> > Skype: abasolo72
> >
> > Tutoretza ordutegia 
> >
> > [[alternative HTML version deleted]]
> >
> > ___
> > R-help-es mailing list
> > R-help-es@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-help-es
> >
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>


-- 
Daniel

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread Carlos Ortega
Hola,

Sí, puedes hacerlo con un widget "datatable" que puedes incluir en un
informe RMarkdown.
Mira el ejemplo aquí:

http://www.htmlwidgets.org/showcase_datatables.html
https://rstudio.github.io/DT/

Saludos,
Carlos Ortega
www.qualityexcellence.es

El mar., 29 ene. 2019 a las 10:44, Juan Abasolo ()
escribió:

> Buenas, erreros;
> Quiero pasar unas tablas resumen (data.frame) para que las investigue otra
> gente. Necesitaría que puedan pinchar en una columna y que se ordene según
> los valores de esa columna y así columna a columna. Podría generar sin
> dificultad tantas tablas ordenadas como columnas tiene el df, pero no sería
> práctico para esta gente.
>
> Si hay alguna solución evidente y fácil, agradecería que la compartieran.
> Si no, tranquilos, la decisión está en sopesar la dificultad de hacerlo y
> la dificultad de pedir disculpas.
>
> Muchas gracias
>
> --
> Juan Abasolo
>
> Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
> Bilboko Hezkuntza Fakultatea
> Euskal Herriko Unibertsitatea
> UPV/EHU
>
> Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
>
> T: (+34) 94 601 7567
> Telegram: @JuanAbasolo
> Skype: abasolo72
>
> Tutoretza ordutegia 
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>


-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread Javier Marcuzzi
Estimado Juan Abasolo

Creo que es imposible, por ahí podría haber un programa que junto a R, algo
muy rebuscado, por ejemplo creando algo con tk (como Rcmdr).

Javier Rubén Marcuzzi

El mar., 29 ene. 2019 a las 6:44, Juan Abasolo ()
escribió:

> Buenas, erreros;
> Quiero pasar unas tablas resumen (data.frame) para que las investigue otra
> gente. Necesitaría que puedan pinchar en una columna y que se ordene según
> los valores de esa columna y así columna a columna. Podría generar sin
> dificultad tantas tablas ordenadas como columnas tiene el df, pero no sería
> práctico para esta gente.
>
> Si hay alguna solución evidente y fácil, agradecería que la compartieran.
> Si no, tranquilos, la decisión está en sopesar la dificultad de hacerlo y
> la dificultad de pedir disculpas.
>
> Muchas gracias
>
> --
> Juan Abasolo
>
> Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
> Bilboko Hezkuntza Fakultatea
> Euskal Herriko Unibertsitatea
> UPV/EHU
>
> Sarriena auzoa z/g 48940 - Leioa (Bizkaia)
>
> T: (+34) 94 601 7567
> Telegram: @JuanAbasolo
> Skype: abasolo72
>
> Tutoretza ordutegia 
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] how to ref data directly from bls.gov using their api

2019-01-29 Thread Bert Gunter
Please search on "Bureau of Labor Statistics" at rseek.org.  You will find
several packages and other resources there for doing what you want.

-- Ber

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Jan 29, 2019 at 9:21 AM Evans, Richard K. (GRC-H000) via R-help <
r-help@r-project.org> wrote:

> Hello,
>
> I'd like to generate my own plots of various labor statistics using live
> data available at https://www.bls.gov/bls/api_features.htm
>
> This is 10% an R question and 90 % a bls.gov api query question.  Please
> forgive me for making this request here but I would be truly grateful for
> anyone here on the R mailinglist who can show me how to write a line of R
> code that "fetches" the raw data anew from the bls.gov website every time
> it runs.
>
> Truest Thanks,
> /Rich
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] Conexion a SQLServer

2019-01-29 Thread Javier Marcuzzi
Estimado Jesús Para Fernández

Yo se usar SQL Server con R, es más, ODBC es obsoleto por decirlo de alguna
forma, incluso RServer viene dentro de Sqlserver.

Javier Rubén Marcuzzi

El mar., 29 ene. 2019 a las 10:23, Jesús Para Fernández (<
j.para.fernan...@hotmail.com>) escribió:

> Buenas,
>
> Alguno usa alguno de los paquetes de Microsoft R para la conexion a SQL
> Server? De ser asi, que paquete y que comandos usais?
>
> Yo hasta ahora he usado odbc, de Rstudio, pero me da siempre problemas con
> el tipo de datos que tiene SQLServer ...
>
> Un saludo
> Jesús
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R] how to ref data directly from bls.gov using their api

2019-01-29 Thread Evans, Richard K. (GRC-H000) via R-help
Hello, 

I'd like to generate my own plots of various labor statistics using live data 
available at https://www.bls.gov/bls/api_features.htm

This is 10% an R question and 90 % a bls.gov api query question.  Please 
forgive me for making this request here but I would be truly grateful for 
anyone here on the R mailinglist who can show me how to write a line of R code 
that "fetches" the raw data anew from the bls.gov website every time it runs. 

Truest Thanks,
/Rich

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-29 Thread Hallie Kamesch
Thank you Jim, for the code, and thank you Jeff for the tutorial PDF.  I've
read through the sections and I appreciate the help.
I'm in way over my head - I don't even understand enough of the vocabulary
to ask my question correctly.
Jim, in your code, I ended up with an entry of 4 observations of 6
variables. I understand how that happened now since I read your code - that
helped very much.
My only problem, that I can't figure out, is how to make it so I have 3
raters with 4 observations of 6 variables.
I really am trying to educate myself enough to not waste your time:  I've
?data.frame, ?sample, ?matrix, ?$names, ?attributes, etc... I read the
sections in Jeff's PDF, and the tutorials on datamentor, I'm just not
finding how to do this. I'm sorry this is such a newbie question.
thank you for your time,
hallie

On Mon, Jan 28, 2019 at 1:21 PM Hallie Kamesch 
wrote:

> Hi all,
> Thank you for your responses. You are correct that it is not a matrix. I
> used the incorrect term.
> I meant I put my data in a spreadsheet with three rows and 24 columns.
>
> Sent from my iPhone
>
> > On Jan 28, 2019, at 3:36 AM, Jim Lemon  wrote:
> >
> > Hi Halllie,
> > As Jeff noted, a data frame is not a matrix (it is a variety of list),
> > so that looks like your problem.
> >
> >
> hkdf<-data.frame(sample(3:5,4,TRUE),sample(1:3,4,TRUE),sample(2:4,4,TRUE),
> > sample(3:5,4,TRUE),sample(1:3,4,TRUE),sample(2:4,4,TRUE))
> > library(irr)
> > kripp.alpha(hkdf)
> > kripp.alpha(as.matrix(hkdf))
> >
> > Jim
> >
> >> On Mon, Jan 28, 2019 at 6:04 PM Hallie Kamesch <
> hallie.kame...@gmail.com> wrote:
> >>
> >> Hi -
> >> I'm trying to run Krippendorff's alpha for data consisting of 4 subjects
> >> rated on 6 events each by three raters.  The ratings are interval ratio
> >> scale data.
> >>
> >> I've rearranged my data into a 3 x 24  of ratersXevents. (per this
> >> discussion on CrossValidated: (
> >>
> https://stats.stackexchange.com/questions/255164/inter-rater-reliability-for-binomial-repeated-ratings-from-two-or-more-raters/256144#256144
> )
> >> ).
> >>
> >> This is the code I've used:
> >> library(irr)
> >> dat <- read.csv(file.choose(), header = TRUE)
> >> head(dat)
> >> kripp.alpha(dat, method=c("ratio"))
> >>  error message: Error in sort.list(y) : 'x' must be atomic for
> >> 'sort.list'
> >> Have you called 'sort' on a list?
> >> kripp.alpha(dat,"ratio")
> >>  error message: Error in sort.list(y) : 'x' must be atomic for
> >> 'sort.list'
> >> Have you called 'sort' on a list?
> >>
> >> I read rhelp on sort, but I'm still confused.  Please help!
> >> Thank you!
> >>
> >> PS
> >> I arranged my data in that matrix based upon this comment and response
> from
> >> the CrossValidated posting forum (
> >>
> https://stats.stackexchange.com/questions/255164/inter-rater-reliability-for-binomial-repeated-ratings-from-two-or-more-raters/256144#256144
> ),
> >> but my question above was rejected there.
> >>
> >>[[alternative HTML version deleted]]
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] Significant Update to Hmisc Package

2019-01-29 Thread Harrell, Frank E



There have been a significant number of bug fixes and updates to the Hmisc 
package.  See the following for the list of changes: 
https://cran.r-project.org/web/packages/Hmisc/NEWS

cran.r-project.org
cran.r-project.org
Changes in version 4.1-1 (2018-01-03)) * describe: quit rounding values when = 
20 distinct values no matter how far apart any two values are spaced.https ...





Frank E Harrell Jr  Professor   School of Medicine

Department of Biostatistics Vanderbilt University


[[alternative HTML version deleted]]

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Gabor Grothendieck
Two additional comments:

- depending on the nature of your problem you may be able to get an
analytic solution using branching processes. I found this approach
successful when I once had to model stem cell growth.

- in addition to NetLogo another alternative to R would be the Julia
language which is motivated to some degree by Octave but is actually
quite different and is particularly suitable in terms of performance
for iterative computations where one iteration depends on the prior
one.

On Mon, Jan 28, 2019 at 6:32 PM Gabor Grothendieck
 wrote:
>
> R has many similarities to Octave.  Have a look at:
>
> https://cran.r-project.org/doc/contrib/R-and-octave.txt
> https://CRAN.R-project.org/package=matconv
>
> On Mon, Jan 28, 2019 at 4:58 PM Alan Feuerbacher  wrote:
> >
> > Hi,
> >
> > I recently learned of the existence of R through a physicist friend who
> > uses it in his research. I've used Octave for a decade, and C for 35
> > years, but would like to learn R. These all have advantages and
> > disadvantages for certain tasks, but as I'm new to R I hardly know how
> > to evaluate them. Any suggestions?
> >
> > Thanks!
> >
> > ---
> > This email has been checked for viruses by Avast antivirus software.
> > https://www.avast.com/antivirus
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> Statistics & Software Consulting
> GKX Group, GKX Associates Inc.
> tel: 1-877-GKX-GROUP
> email: ggrothendieck at gmail.com



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] instalar administrar RStudio Server Open Source

2019-01-29 Thread Jesús Para Fernández
Por añadir mi experiencia, lo he instalado en debian y ubuntu y cero 
problemas... El resto de preguntas considero lo mismo que Javier.

Jesús

De: Javier Nieto 
Enviado: lunes, 28 de enero de 2019 19:29
Para: Francesc Montané; Jesús Para Fernández; Xavier-Andoni Tibau Alberdi
Cc: Lista R
Asunto: RE: [R-es] instalar administrar RStudio Server Open Source

Hola

Yo he instalado varias veces Rstudio Server, contesto tus preguntas:



  1.  Yo lo he instalado y trabajado en Ubuntu, Red Hat, Fedora y Arch 
Linux(esta distro no es tan usada). Sobre docker hay mucha información en 
internet, para el caso de uno ya acondicionado para Rstudio puedes buscar 
Rocker, viene con Ubuntu. Si optas por la opción de usar docker, debes entender 
muy bien ese concepto y su uso.
  2.   En todas las anteriores distros que mencione funciona bien y se instala 
tal como dice en el enlace que pones. Rara vez existen complicaciones.
  3.  Todas la librerías sí son compatibles, solo he tenido problemas en Ubuntu 
con ROracle, pero al parecer es por configuración(No le di seguimiento a la 
solución)
  4.  El acceso está dado con base en los usuarios del SO, es decir solo 
quienes tienen acceso al SO pueden acceder a Rstudio Server. Si una o más 
personas comparten el acceso, solo una podrá trabajar.
  5.  Todo funciona bien, es idéntico a la versión de escritorio. Depende de lo 
que necesitas hacer, es una buena opción para trabajar en servidores si tu 
equipo local no da el ancho. No debería estar en servidores de producción. Lo 
recomiendo únicamente para trabajo de análisis de información. Para modelos 
embedidos en sistemas no es útil. Si quieres dejar corriendo procesos largos, 
se puede hacer, pero es mejor utilizar herramientas como screen o tmux. No es 
un api, ni genera una para consumo de modelos, que es lo muchas veces la gente 
busca.

Saludos

De: R-help-es  en nombre de Francesc Montané 

Enviado: lunes, 28 de enero de 2019 11:21 a. m.
Para: Jesús Para Fernández; Xavier-Andoni Tibau Alberdi
CC: Lista R
Asunto: Re: [R-es] instalar administrar RStudio Server Open Source

Hola Jesús,


Muchas gracias por tu respuesta. Te comento algunas dudas iniciales que tengo 
respecto a la versión gratuïta de RStudio Server Open Source.


  *   Características técnicas del servidor: Consulté hace unos días el enlace 
que has pasado (https://www.rstudio.com/products/rstudio/download-server/), 
donde se apunta que Rstudio Server puede instalarse en plataformas Linux. Según 
indican las únicas plataformas testadas y certificadas para instalar RStudio 
son Debian, Ubuntu y RedHat/CentOS. En tu caso utilizas también uno de estos 
servidores? SUSE o SLES Linux aparece también en el listado de servidores de la 
web, pero quizás no es una plataforma testada y certificada para instalar 
RStudio? En la web no indica nada sobre lo que comentas de Docker. Tienes más 
información sobre Docker?

  *   Instalar R y RStudio: Siguiendo las instrucciones del enlace, aparece 
algún problema durante la instalación o todo es bastante sencillo si utilizan 
algunos de los servidores testados y certificados?

  *   Utilizar R y RStudio Server Open Source: Supongo que todas las librerías 
de R son compatibles con la versión de RStudio Server Open Source? O sólo son 
compatibles algunas de las librerías disponibles en R? Necesitaría confirmar 
que todas las librerías disponibles para R también son disponibles para RStudio 
Server versión gratuïta.

  *   Usuarios: Existe alguna limitación en el número de usuarios que pueden 
utilizar simultáneamente RStudio en el servidor con la versión gratuïta?

  *   Otros aspectos de interés o sugerencias: A partir de tu experiencia con 
RStudio server gratuito, qué recomendaciones o sugerencias darías a nuevos 
usuarios? Quizás sea preferible utilizar algún servidor concreto, etc...? Cómo 
valoras tu experiencia con RStudio server gratuito? Ha sido una experiencia 
positiva hasta el momento o han aparecido algunos problemas?


Me resultaría muy útil si me pudieras aclarar estas dudas iniciales.

Si necesito aclarar otros puntos ya enviaría más mensajes a la lista.

Muchas gracias.


Un saludo,


Fran





De: Jesús Para Fernández 
Enviado: lunes, 28 de enero de 2019 9:54
Para: Xavier-Andoni Tibau Alberdi
Cc: Francesc Montané; Lista R
Asunto: RE: [R-es] instalar administrar RStudio Server Open Source

Para poder instalarlo necesitais un servidor linux o bien un docker. Instlarlo 
es bastante sencillo, tan solo hay que repetir los siguientes pasos:

https://www.rstudio.com/products/rstudio/download-server/

Un saludo
Jesús

De: Xavier-Andoni Tibau Alberdi 
Enviado: lunes, 28 de enero de 2019 10:51
Para: Jesús Para Fernández
Cc: Francesc Montané; Lista R
Asunto: Re: [R-es] instalar administrar RStudio Server Open Source

Sí por favor, yo estoy interesado en saber como funciona y demas.

Un saludo,


Re: [R-es] BioStatFLOSS 4.0

2019-01-29 Thread Griera-yandex
Gracias por el esfuerzo! 


On Tue, 29 Jan 2019 09:56:59 +
 wrote:

> Hola.
> 
> Os informo de que hemos publicado una nueva versi_n (la 4) de BioStatFLOSS.
> 
> Para el que no lo conozca, se trata de una recopilaci_n de software para 
> Windows. Es una "colecci_n" de programas de utilidad para la realizaci_n de 
> estudios estad_sticos en general (y bioestad_sticos/biom_dicos en particular) 
> en el que "la estrella" es (of course) R. La principal caracter_stica es que 
> son versiones portables (no es necesario instalarlas por lo que no son 
> "agresivas" con el sistema), independientes una de otras y con un lanzador 
> com_n para facilitar la tarea de ejecutarlas.
> 
> Para descargarlo, accederemos a la web del Proyecto 
> http://www.sergas.es/Saude-publica/BioStatFLOSS?idioma=es y en la secci_n de 
> DESCARGA (a la derecha) elegiremos uno de los mirror (es un fichero de 
> 2'6Gb). Una vez realizada dicha descarga (ya sea en el disco duro o en una 
> unidad externa de disco o pendrive), se descomprime el fichero y ya est_ 
> listo para usar. Entramos en la carpeta resultante y ejecutamos el fichero 
> BioStatFLOSS.EXE.
> 
> 
> NOTAS:
> - La versi_n de R es la 3.5.2 e incluye RCommander.
> - Se puede "transportar" cualquiera de los programas independientemente de 
> los otros (es decir, si s_lo nos interesa R, pues copiamos s_lo esa carpeta 
> -y lanzamos el programa en cuesti_n con el fichero .BAT correspondiente-).
> - El Lanzador est_ programado en FreePascal (Lazarus) y el c_digo fuentese 
> encuentra en la carpeta BioStatFLOSS.
> - Es poco intrusivo con sistemas "protegidos" (no es necesario ser 
> Administrador del sistema ni instalar nada en el equipo).
> - Resulta muy c_modo a la hora de utilizarlo para formaci_n (se copia en los 
> equipos del aula, o se entrega en un pendrive, y est_ listo para trabajar).
> - Dependiendo del antivirus que teng_is instalado, el proceso de 
> descompresi_n puede requerir de bastante paciencia (son MUCHOS ficheros).
> 
> Es de agradecer cualquier comentario/sugerencia/feedback.
> 
> 
> Pd.- Gracias a la Asociaci_n MELISA por su colaboraci_n 
> (https://www.melisa.gal/)
> 
> 
> Un Saludo,
> --
> Miguel _ngel Rodr_guez Mu__os
> Coordinador del Proyecto BioStatFLOSS
> Direcci_n Xeral de Sa_de P_blica
> Conseller_a de Sanidade
> Xunta de Galicia
> http://dxsp.sergas.es
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Nota: A informaci_n contida nesta mensaxe e os seus posibles documentos 
> adxuntos _ privada e confidencial e est_ dirixida _nicamente _ seu 
> destinatario/a. Se vostede non _ o/a destinatario/a orixinal desta mensaxe, 
> por favor elim_nea. A distribuci_n ou copia desta mensaxe non est_ autorizada.
> 
> Nota: La informaci_n contenida en este mensaje y sus posibles documentos 
> adjuntos es privada y confidencial y est_ dirigida _nicamente a su 
> destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
> por favor elim_nelo. La distribuci_n o copia de este mensaje no est_ 
> autorizada.
> 
> See more languages: http://www.sergas.es/aviso-confidencialidad
> 
>   [[alternative HTML version deleted]]
>

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R-es] BioStatFLOSS 4.0

2019-01-29 Thread miguel.angel.rodriguez.muinos
Hola.

Os informo de que hemos publicado una nueva versi�n (la 4) de BioStatFLOSS.

Para el que no lo conozca, se trata de una recopilaci�n de software para 
Windows. Es una "colecci�n" de programas de utilidad para la realizaci�n de 
estudios estad�sticos en general (y bioestad�sticos/biom�dicos en particular) 
en el que "la estrella" es (of course) R. La principal caracter�stica es que 
son versiones portables (no es necesario instalarlas por lo que no son 
"agresivas" con el sistema), independientes una de otras y con un lanzador 
com�n para facilitar la tarea de ejecutarlas.

Para descargarlo, accederemos a la web del Proyecto 
http://www.sergas.es/Saude-publica/BioStatFLOSS?idioma=es y en la secci�n de 
DESCARGA (a la derecha) elegiremos uno de los mirror (es un fichero de 2'6Gb). 
Una vez realizada dicha descarga (ya sea en el disco duro o en una unidad 
externa de disco o pendrive), se descomprime el fichero y ya est� listo para 
usar. Entramos en la carpeta resultante y ejecutamos el fichero 
BioStatFLOSS.EXE.


NOTAS:
- La versi�n de R es la 3.5.2 e incluye RCommander.
- Se puede "transportar" cualquiera de los programas independientemente de los 
otros (es decir, si s�lo nos interesa R, pues copiamos s�lo esa carpeta -y 
lanzamos el programa en cuesti�n con el fichero .BAT correspondiente-).
- El Lanzador est� programado en FreePascal (Lazarus) y el c�digo fuentese 
encuentra en la carpeta BioStatFLOSS.
- Es poco intrusivo con sistemas "protegidos" (no es necesario ser 
Administrador del sistema ni instalar nada en el equipo).
- Resulta muy c�modo a la hora de utilizarlo para formaci�n (se copia en los 
equipos del aula, o se entrega en un pendrive, y est� listo para trabajar).
- Dependiendo del antivirus que teng�is instalado, el proceso de descompresi�n 
puede requerir de bastante paciencia (son MUCHOS ficheros).

Es de agradecer cualquier comentario/sugerencia/feedback.


Pd.- Gracias a la Asociaci�n MELISA por su colaboraci�n 
(https://www.melisa.gal/)


Un Saludo,
--
Miguel �ngel Rodr�guez Mu��os
Coordinador del Proyecto BioStatFLOSS
Direcci�n Xeral de Sa�de P�blica
Conseller�a de Sanidade
Xunta de Galicia
http://dxsp.sergas.es













Nota: A informaci�n contida nesta mensaxe e os seus posibles documentos 
adxuntos � privada e confidencial e est� dirixida �nicamente � seu 
destinatario/a. Se vostede non � o/a destinatario/a orixinal desta mensaxe, por 
favor elim�nea. A distribuci�n ou copia desta mensaxe non est� autorizada.

Nota: La informaci�n contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y est� dirigida �nicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elim�nelo. La distribuci�n o copia de este mensaje no est� autorizada.

See more languages: http://www.sergas.es/aviso-confidencialidad

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R-es] ¿Como informe con tablas que se puedan organizar dinámicamente?

2019-01-29 Thread Juan Abasolo
Buenas, erreros;
Quiero pasar unas tablas resumen (data.frame) para que las investigue otra
gente. Necesitaría que puedan pinchar en una columna y que se ordene según
los valores de esa columna y así columna a columna. Podría generar sin
dificultad tantas tablas ordenadas como columnas tiene el df, pero no sería
práctico para esta gente.

Si hay alguna solución evidente y fácil, agradecería que la compartieran.
Si no, tranquilos, la decisión está en sopesar la dificultad de hacerlo y
la dificultad de pedir disculpas.

Muchas gracias

-- 
Juan Abasolo

Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
Bilboko Hezkuntza Fakultatea
Euskal Herriko Unibertsitatea
UPV/EHU

Sarriena auzoa z/g 48940 - Leioa (Bizkaia)

T: (+34) 94 601 7567
Telegram: @JuanAbasolo
Skype: abasolo72

Tutoretza ordutegia 

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] Your input

2019-01-29 Thread PIKAL Petr
Hm.


  1.  You should always keep your responses to R helplist, others could have 
different views.
  2.  Error is quite clear to me, deptest2 is not numeric.

If it was you would not observe such error.
> temp <- bl[,-1]
> cor(temp)
  spolej dehtv dehta  dinp
spolej 1.000 0.7234237 0.4205311 0.4310729
dehtv  0.7234237 1.000 0.8743103 0.8766513
dehta  0.4205311 0.8743103 1.000 0.9975101
dinp   0.4310729 0.8766513 0.9975101 1.000
> cor(bl)
Error in cor(bl) : 'x' must be numeric
> lapply(bl,is.numeric)
$`sarze`
[1] FALSE
$spolej
[1] TRUE
$dehtv
[1] TRUE
$dehta
[1] TRUE
$dinp
[1] TRUE


  1.  Attaching Excel data is pointless. What matters is your objects in R, 
which you could easily inspect by
?str or head(yourobject)


  1.  For R objects exchange through this list
?dput is the only reasonable way.


  1.  You definitely do not know R basics and want to do highly sophisticated 
analysis. Spending few hours reading R intro could save you much time and 
headache.

Sorry, I could not help you with network analysis as I do not know anything 
about it.

Cheers
Petr

From: Bhubaneswor Dhakal 
Sent: Tuesday, January 29, 2019 12:32 AM
To: PIKAL Petr 
Subject: Your input

Hi Petr

1. I read your online material but could not figure out the r code to get 
network result to compare between control and treatment groups. Can you please 
specify the code?

2. I used many types of r code to get correlation matrix of some observation 
missing data but non of them worked. But every time I run r study, I get the 
following error message:

Error in cor(deptest2, use = "complete.obs") : 'x' must be numeric

Can you please advise me where is the problem?
1.  corMat<-cor(mydata2, use= "complete.obs")
2. corMat<-cor(mydata2, use= "all.obs")
3. corMat<-cor(mydata2, use= "pairwise.complete.obs")
4. corMat<-cor(mydata2, use= "na or pairwise.complete.obs")
A sample of my data is attached. I have excluded serial ID and treatment ID in 
the data. Every alternative row is treated and the another row is control.

I would be indebted if you provide me help to resolve the TWO problems?-
Thank you.
Best Wishes.
Bhubaneswor Dhakal




Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních 
partnerů PRECHEZA a.s. jsou zveřejněny na: 
https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about 
processing and protection of business partner’s personal data are available on 
website: https://www.precheza.cz/en/personal-data-protection-principles/
Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a 
podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: 
https://www.precheza.cz/01-dovetek/ | This email and any documents attached to 
it may be confidential and are subject to the legally binding disclaimer: 
https://www.precheza.cz/en/01-disclaimer/


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.