I am having trouble calling the lmer function in the {Matrix} package. I first installed and loaded {Matrix} as follows: > install.packages("Matrix") > library(Matrix) The package loaded successfully, however when I attempted to call lmer, I received the following message: Error: could not find function "lmer" I also tried: < ?lmer which produced no search results. I have attempted these actions in both MacOSx R Versions 2.4.1 and 2.5.0. I have also tried this in Version 2.5.1. beta on a Windows machine. Thanks in advance for any suggestions. Steve ____________________________________ Steven P. Brady, M.E.Sc (2007) School of Forestry & Environmental Studies Yale University http://www.cbc.yale.edu/people/skelly/steveb.html [[alternative HTML version deleted]]
It's now in the lme4 package. On 19/06/07, Steve Brady <steven.brady at yale.edu> wrote:> I am having trouble calling the lmer function in the {Matrix} > package. I first installed and loaded {Matrix} as follows: > > > install.packages("Matrix") > > library(Matrix) > > The package loaded successfully, however when I attempted to call > lmer, I received the following message: > > Error: could not find function "lmer" > > I also tried: > > < ?lmer > > which produced no search results. > > I have attempted these actions in both MacOSx R Versions 2.4.1 and > 2.5.0. I have also tried this in Version 2.5.1. beta on a Windows > machine. > > Thanks in advance for any suggestions. > > Steve > ____________________________________ > Steven P. Brady, M.E.Sc (2007) > School of Forestry & Environmental Studies > Yale University > http://www.cbc.yale.edu/people/skelly/steveb.html > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- ================================David Barron Said Business School University of Oxford Park End Street Oxford OX1 1HP
I don't think it's there. I have had a look at the ref doc and lmer does not show up. Have a look at http://finzi.psych.upenn.edu/R/Rhelp02a/archive/67904.html It looks like it's in the lme4 package now. --- Steve Brady <steven.brady at yale.edu> wrote:> I am having trouble calling the lmer function in the > {Matrix} > package. I first installed and loaded {Matrix} as > follows: > > > install.packages("Matrix") > > library(Matrix) > > The package loaded successfully, however when I > attempted to call > lmer, I received the following message: > > Error: could not find function "lmer" > > I also tried: > > < ?lmer > > which produced no search results. > > I have attempted these actions in both MacOSx R > Versions 2.4.1 and > 2.5.0. I have also tried this in Version 2.5.1. > beta on a Windows > machine. > > Thanks in advance for any suggestions. > > Steve > ____________________________________ > Steven P. Brady, M.E.Sc (2007) > School of Forestry & Environmental Studies > Yale University > http://www.cbc.yale.edu/people/skelly/steveb.html > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. >
Martin Maechler
2007-Jun-20 07:45 UTC
[R] Could not find lmer function in {Matrix} package
>>>>> "SB" == Steve Brady <steven.brady at yale.edu> >>>>> on Tue, 19 Jun 2007 11:59:15 -0400 writes:SB> I am having trouble calling the lmer function in the {Matrix} SB> package. I first installed and loaded {Matrix} as follows: >> install.packages("Matrix") >> library(Matrix) SB> The package loaded successfully, however when I attempted to call SB> lmer, I received the following message: SB> Error: could not find function "lmer" SB> I also tried: SB> < ?lmer SB> which produced no search results. And who told you lmer() was in the Matrix package ? It's in the lme4 package, and --- conceptually has always been there -- Only for some maintenance convenience (C code shared between lme4 and Matrix) reasons, lmer() has actually been in the Matrix package for some time in the past, however you were always supposed to say require(lme4) or library(lme4) to get to lmer. Regards, Martin SB> I have attempted these actions in both MacOSx R Versions 2.4.1 and SB> 2.5.0. I have also tried this in Version 2.5.1. beta on a Windows SB> machine. SB> Thanks in advance for any suggestions. SB> Steve
Reasonably Related Threads
- Contrast interaction effects in lmer object for reciprocal transplant experiment
- Linux editor for R+LaTeX, but not Emacs
- Help with specifiying random effects in lmer - psychology experiment
- Sweave problem, with multicolumn tables from R to LaTeX
- random forest varimp