Displaying 1 result from an estimated 1 matches for "fm1sim".
Did you mean:
fm1sims
2002 Mar 31
1
lme degrees of freedoms: SAS and R
...v is the # of
levels for the grouping factor. From SAS df = v -1. Am I wrong about this
or can somebody explain which is correct and why?
Thanks a lot!
Kaiya Liu
-------------------------------------
Here are the codes:
For R:
> formula (SIMS)
Gain ~ Pretot | Class
> data(SIMS)
> fm1SIMS <- lme(Gain ~ Pretot, data = SIMS, random = ~ Pretot | Class,
control = list(msVerbose = TRUE))
> summary (fm1SIMS)
_________________________________
For SAS:
proc mixed data=sims;
class class;
model gain = pretot / solution;
random intercept pretot / subject=class type=un;
ru...