[R-SIG-Mac] lme4 print and summary errror
Andrew Beckerman
a.beckerman at sheffield.ac.uk
Mon Feb 28 15:11:10 CET 2005
I just wanted to update on this issue, and it appears to be a mac
problem. I sorted the issue by deleting my .RData and .RHistory files
in my home directory. It appears that somewhere in those files,
perhaps a latent image of something linked to nlme remained, causing
the print and summary function not to work (on the last three releases
of lme4). Having done this, all is well in R+lme4+OSX. Why this
happend, I don't know.
Cheers
andrew
On 11 Jan 2005, at 11:37, Douglas Bates wrote:
> Andrew Beckerman wrote:
>> Hi all - (this is posted to r-help and R-SIG-MAC)
>> OSX 10.3.7, R 2.0.1, lme4/Matrix/latticeExtra latest, fresh install
>> of R. MASS loaded (or not).
>> I am getting an error message for the print() and summary() commands
>> with all lme models I try and run in lme4 (GLMM's work fine). Using
>> the example from the lme help, summary and print produce the
>> following errors, despite the model being fit, as indicated by
>> VarCorr() and examination of str(fm). Any ideas?
>> (I can't reproduce this on a windows95 install of 2.0.1, so I am
>> guessing it may be a mac thing at the moment? This happens with the
>> binary or the source installation of lme4.)
>> Cheers
>> andrew
>> > data(bdf)
>> > fm <- lme(langPOST ~ IQ.ver.cen + avg.IQ.ver.cen, data = bdf,
>> + random = ~ IQ.ver.cen | schoolNR)
>> > summary(fm)
>> Error in verbose || attr(x, "verbose") : invalid `y' type in `x || y'
>> > fm
>> Linear mixed-effects model fit by Data: NULL
>> Log-likelihood: NULL
>> Fixed: list()
>> NULL
>> Length Class Mode
>> 0 NULL NULL
>> Number of Observations:
>> Number of Groups: Error in 1:dd$Q : NA/NaN argument
>> > VarCorr(fm)
>> Groups Name Variance Std.Dev. Corr
>> schoolNR (Intercept) 8.07702 2.84201
>> IQ.ver.cen 0.20806 0.45614 -0.642
>> Residual 41.34942 6.43035
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> Check what packages you have loaded. It looks as if you have loaded
> lme4 and nlme at the same time and you their methods will conflict.
>
>
------------------------------------------------------------------------
---------
Dr. Andrew Beckerman
Department of Animal and Plant Sciences, University of Sheffield,
Alfred Denny Building, Western Bank, Sheffield S10 2TN, UK
ph +44 (0)114 222 0026; fx +44 (0)114 222 0002
http://www.shef.ac.uk/beckslab
------------------------------------------------------------------------
----------
More information about the R-SIG-Mac
mailing list