LRTest {midasHLA} | R Documentation

## Likelihood ratio test

### Description

`LRTest` carry out an asymptotic likelihood ratio test for two models.

### Usage

    LRTest(mod0, mod1)

### Arguments

`mod0` | An existing fit from a model function such as lm, glm and many others.
`mod1` | Object of the same class as `mod0` with extra terms included.

### Details

`mod0` have to be a reduced version of `mod1`. See examples.

### Value

Data frame with the results of likelihood ratio test of the supplied models.

Column `term` holds new variables appearing in `mod1`, `df` difference in degrees of freedom between models, `logLik` difference in log likelihoods, `statistic` `Chisq` statistic and `p.value` corresponding p-value.

[Package midasHLA version 1.2.0 Index]