[R] correlation structures in NLME
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Aug 12 23:24:14 CEST 2004
On Thu, 12 Aug 2004, Michael Jerosch-Herold wrote:
> I am using the latest version of R on a Windows machine and get the
> following error when I try to initialize a correlation structure with
> the function corAR1 in NLME. This example is taken from the book of
> Pinheiro and Bates, so it should work. What is going wrong?
That book is about S(-PLUS), so there is no reason why it `should work' in
R.
> > library(nlme)
> > data(Orthodont)
> > cs1AR1 <- corAR1(0.8, form= ~1 | Subject)
> > cs1AR1 <- initialize(cs1AR1, data = Orthodont)
> Error in methodsPackageMetaName("C", name) :
> The name of the object (e.g,. a class or generic function) to
> find in the meta-data must be a single string (got a character vector of
> length 2)
> 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,
Try
> find("initialize")
[1] "package:methods"
so that's not right.
Have you looked in the R scripts in package nlme? I think it is
Initialize() in R.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list