Re: [R] Conveting SAS Proc mixed to R code

2011-04-16 Thread Douglas Bates
On Fri, Apr 15, 2011 at 8:45 AM, Ben Bolker wrote: > Kevin Wright gmail.com> writes: > >> >> > I am trying to teach myself R and replicate some previous SAS analysis. >> > Could someone please help me translate the following SAS code into R. >> > >> > Proc mixed method=ml >> > Class Group Treatme

Re: [R] Conveting SAS Proc mixed to R code

2011-04-15 Thread RKinzer
I am desperate for help and thank you to everyone providing input. I am using lme4 for a mixed linear model, and trying to replicate a SAS analysis (see thread below). Variables: Dependent = logrkm; Independent = Group (Streams grouped by similarity), Treatment (3 treatments), Stream, Time (1 or

Re: [R] Conveting SAS Proc mixed to R code

2011-04-15 Thread Ben Bolker
Kevin Wright gmail.com> writes: > > > I am trying to teach myself R and replicate some previous SAS analysis. > > Could someone please help me translate the following SAS code into R. > > > > Proc mixed method=ml > > Class Group Treatment Stream Time Year; > > Model Logrpk=Treatment Time Treatme

Re: [R] Conveting SAS Proc mixed to R code

2011-04-14 Thread Kevin Wright
> I am trying to teach myself R and replicate some previous SAS analysis. > Could someone please help me translate the following SAS code into R. > > Proc mixed method=ml > Class Group Treatment Stream Time Year; > Model Logrpk=Treatment Time Treatment*Time; > Random Group Stream (Group Treatment)

[R] Conveting SAS Proc mixed to R code

2011-04-14 Thread RKinzer
Hello all, I am trying to teach myself R and replicate some previous SAS analysis. Could someone please help me translate the following SAS code into R. Proc mixed method=ml Class Group Treatment Stream Time Year; Model Logrpk=Treatment Time Treatment*Time; Random Group Stream (Group Treatment)