[R] How to perform a Likelihood-ratio test?

Charles C. Berry cberry at tajo.ucsd.edu
Mon Jul 13 19:09:21 CEST 2009


On Mon, 13 Jul 2009, Jeff Xu wrote:

>
> Hi Lars,
>
> Using the definition of Likelihood-ratio test is straightforward,


To which I would add, following the instructions in the _posting guide_ is 
equally straightforward. viz


 	help.search("loglikelihood")

takes you to

 	?stats::logLik

Chuck

>
> 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.
>
> ______________________________________________
> 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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901




More information about the R-help mailing list