[R] Variance functions in package nlme

Nordlund, Dan (DSHS) NordlDJ at dshs.wa.gov
Mon Jul 17 19:24:36 CEST 2006


> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-
> bounces at stat.math.ethz.ch] On Behalf Of Thilo Kellermann
> Sent: Monday, July 17, 2006 9:57 AM
> To: R-help at stat.math.ethz.ch
> Subject: [R] Variance functions in package nlme
> 
> Dear R-help,
> 
> I am trying to set up linear mixed effects models in R using the
> (recommended)
> nlme package (R version 2.3.1 on a Linux platform). When trying to
> reproduce
> an example from Jose Pinheiro & Douglas Bates (2000, p 210) I get the
> following error message (code to produce message pasted as well):
> 
> library("nlme")
> data("Orthodont")
> vf1Ident <- varIdent( c(Female = 0.5), form = ~ 1 | Sex )
> vf1Ident <- initialize(vf1Ident, Orthodont)
> Error in getClass(Class) : c("\"varIdent\" is not a defined class",
> "\"varFunc\" is not a defined class")
> In addition: Warning message:
> the condition has length > 1 and only the first element will be used in:
> if
> (!is.na(match(Class, .BasicClasses))) return(newBasic(Class,
> 
> Can anybody give me a hint, what's going wrong here?
> Thanks a lot,
> 
> Thilo

I believe the function initialize() has been renamed Initialize() in R.

Hope this helps,

Dan

Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA  98504-5204



More information about the R-help mailing list