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]]
Hi Lars, Using the definition of Likelihood-ratio test is straightforward, Jeff Lars Bergemann 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 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. > >-- View this message in context: http://www.nabble.com/How-to-perform-a-Likelihood-ratio-test--tp24460221p24463269.html Sent from the R help mailing list archive at Nabble.com.
Le lundi 13 juillet 2009 ? 13:04 +0200, Lars Bergemann a ?crit :> 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??anova? Check the "test" argument ...:-) Emmanuel Charpentier
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.bergemann@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]]
Maybe Matching Threads
- How does logLik(lm(...)) find the maximum log likelihoods
- Plotting Two Surfaces in one plot with wireframe() using groups=
- OT: Likelihood ratio for the randomization/permutation test?
- Running a likelihood ratio test for a logit model
- likelihood ratio tests using glmmPQL