Dear Lars, One way would be anova(model1, model2)
See ?anova for more information. HTH, Jorge On Mon, Jul 13, 2009 at 7:04 AM, Lars Bergemann <lars.bergem...@hotmail.com>wrote: > > Hi. > > > > I would like to use a likelihood-ratio test to compare a linear model > (lm()) to another linear model containing the first one to see if the extra > factors are needed - but I was unable to find any help on how to do that. > > Could you help me and tell me what to do? Or tell me where to find help on > this topic? > > > > Many thanks in advance! > > > > Lars > > _________________________________________________________________ > > s. It's easy! > > aspx&mkt=en-us > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.