[R] Help converting SAS Proc mixed to R code

2011-04-14 Thread RKinzer
To anyone that may be able to help, First I applogize if this message ends up in your inbox twice. The first one seemed to get stuck in a pending status so I deleted and started over. I am relatively new to R, however I know the basics through some classes I have taken. Unfortunately the classe

[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)

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

[R] Duplicate rows when I combine two data.frames with merge!

2012-02-06 Thread RKinzer
Hello all, First I have done extensive searches on this forum and others and nothing seems to work. So I decided to post thinking someone could point me to the write post or give me some help. I have drawn a 100 samples from a fictitious population (N=1000), and then randomly selected 25% of the