[R] Can not find lme

Simon Blomberg s.blomberg1 at uq.edu.au
Wed Aug 8 08:57:42 CEST 2012


You loaded package lme4. The function lme is in package nlme. Try doing

library(nlme)

first.

Simon.

On 08/08/12 16:22, Santini Silvana wrote:
> Dear all,
> Can anyone help me, my R software can not run a nested linear regression by using the lme funcion. The message that appears isÂ
> Error: could not find function "lme"
> I already downloaded and loaded the package, please see below. Thank you in advance for any help! Nadia.
>
>> data<-read.csv("/Users/nadiasan1/Desktop/MOE and MOR.csv")> attach(data)> names(data)[1] "Species" "LME" Â  Â  "LMR" Â  Â  "WD" Â  Â Â > install.packages("lme4")trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/lme4_0.999375-42.tgz'Content type 'application/x-gzip' length 1453067 bytes (1.4 Mb)opened URL==================================================downloaded 1.4 Mb
> The downloaded packages are in	/var/folders/yx/l4kkhz8j24179y5vq0hp9md00000gp/T//Rtmpqsa0o1/downloaded_packagesalso installing the dependencies ‘mlmRev’, ‘MEMSS’, ‘sfsmisc’, ‘MatrixModels’
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/mlmRev_1.0-1.tgz'Content type 'application/x-gzip' length 1832388 bytes (1.7 Mb)opened URL==================================================downloaded 1.7 Mb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/MEMSS_0.9-0.tgz'Content type 'application/x-gzip' length 236762 bytes (231 Kb)opened URL==================================================downloaded 231 Kb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/sfsmisc_1.0-19.tgz'Content type 'application/x-gzip' length 386160 bytes (377 Kb)opened URL==================================================downloaded 377 Kb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/MatrixModels_0.3-1.tgz'Content type 'application/x-gzip' length 204787 bytes (199 Kb)opened URL==================================================downloaded 199 Kb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/lme4_0.999375-42.tgz'Content type 'application/x-gzip' length 1453067 bytes (1.4 Mb)opened URL==================================================downloaded 1.4 Mb
>
> The downloaded packages are in	/var/folders/yx/l4kkhz8j24179y5vq0hp9md00000gp/T//Rtmpqsa0o1/downloaded_packagesLoading required package: MatrixLoading required package: lattice
> Attaching package: ‘Matrix’
> The following object(s) are masked from ‘package:base’:
> Â  Â  det
>
> Attaching package: ‘lme4’
> The following object(s) are masked from ‘package:stats’:
> Â  Â  AIC, BIC
> starting httpd help server ... done> model1<-lme(LME~WD, random=~1|Species, ML)Error: could not find function "lme"
>
>
> 	[[alternative HTML version deleted]]
>

-- 
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
T: +61 7 3365 2506
email: S.Blomberg1_at_uq.edu.au
http://www.uq.edu.au/~uqsblomb/

Policies:
1.  I will NOT analyse your data for you.
2.  Your deadline is your problem.

Statistics is the grammar of science - Karl Pearson.



More information about the R-help mailing list