Re: [R] lme library

From: Ben Bolker <bolker_at_ufl.edu>
Date: Tue, 18 Mar 2008 18:53:39 +0000 (UTC)

 <roberta_varriale <at> ds.unifi.it> writes:

> I’m able to estimate a null model.
> For example, using SAS data, I can estimate the model:
> lme(y ~ 1, data = Mississippi, random = ~ 1|influent, method="ML")
>
> As suggested in the literature I want to “test” the significance of the
> second level variance. So, I would like also to estimate a linear model
> without random effects. Is it possible with your library?
> In the description of the function lme I found that the random part is
> optional, but I don't know how to remove it.

  In general, linear models without random effects are fit with lm() , which is part of base R. If you need other fancy things (heteroscedasticity, spatial autocorrelation etc.) you can use gls in the nlme package.

  Ben Bolker



R-help_at_r-project.org 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. Received on Tue 18 Mar 2008 - 19:04:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 18 Mar 2008 - 20:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive