[R] lme question
Andrew Robinson
andrewr at uidaho.edu
Mon Mar 22 23:39:38 CET 2004
Hi Donglei,
what is your goal in fitting this model? The statement that you've used is
creating an overparameterized model, as it fits a random intercept for each
visit within each subject. I wonder if you might prefer
testresult <- lme(expr~visit, data=testdata, random=~1|subject)
which will fit a random intercept for each subject?
Andrew
On Monday 22 March 2004 14:29, donghu at itsa.ucsf.edu wrote:
> Hi,
>
> I have a dataset like this,
>
> > testdata
>
> Grouped Data: expr ~ visit | subject
> expr visit subject
> 1 6.502782 V1 A
> 2 6.354506 V1 B
> 3 6.349184 V1 C
> 4 6.386301 V2 A
> 5 6.376405 V2 B
> 6 6.758640 V2 C
> 7 6.414142 V3 A
> 8 6.354521 V3 B
> 9 6.396636 V3 C
>
> I tried the command
>
> > testresult=lme(expr~visit,data=testdata,random=~visit|subject)
>
> I got the following error message.
> Error in MEestimate(lmeSt, grps) : Singularity in backsolve at level 0,
> block 1 In addition: There were 50 or more warnings (use warnings() to see
> the first 50)
>
> Could someone give me some hint on what went wrong? Thanks.
>
> Donglei Hu
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
--
Andrew Robinson Ph: 208 885 7115
Department of Forest Resources Fa: 208 885 6226
University of Idaho E : andrewr at uidaho.edu
PO Box 441133 W : http://www.uidaho.edu/~andrewr
Moscow ID 83843 Or: http://www.biometrics.uidaho.edu
No statement above necessarily represents my employer's opinion.
More information about the R-help
mailing list