Computes the likelihood ratio test for the coefficients of a generalized linear model.

1 | ```
lr.test(fit1, fit2)
``` |

`fit1` |
an object that stores the results of |

`fit2` |
an object that stores the results of |

The objects `fit1`

and `fit2`

are obtained using the usual options passed to the `glm`

function.

The function `lrt.test()`

returns the following list of values:

`LR` |
the value of the likelihood ratio statistic. |

`pvalue` |
the p value of test under null hypothesis chi-square distribution. |

Both `fit1`

and `fit2`

must have the same `family`

and link function.

Damiao N. da Silva damiao@ccet.ufrn.br

Antonio Hermes M. da Silva-Junior hermes@ccet.ufrn.br

McCullagh P, Nelder J (1989). *Generalized Linear Models*. Chapman & Hall/CRC, London.

Da Silva DN, Cordeiro GM (2009). "A Computer Program to Improve LR Tests for Generalized Linear Models." *Communications in Statistics – Simulation and Computation*, 38(10), 2184–2197.

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.