R code for SAS model

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

R code for SAS model

indugun
Hello

How to write the following SAS model in R.  

proc mixed ;
 
class cow period trt day;
model logt10= trt covariant day day*trt/outp=p residual ddfm=kr;
random period cow;
repeated day/subject=cow*trt type=ar(1);
lsmeans  trt day day*trt/diff;