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
Report Content as Inappropriate

R code for SAS model


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;