lrtest: Likelihood ratio test

Description Usage Arguments Value Examples

View source: R/lrtest.R

Description

Likelihood ratio test

Usage

1
lrtest(mod, mod_null)

Arguments

mod

an object of class bbdml

mod_null

an object of class bbdml, should be nested within mod

Value

P-value from likelihood ratio test.

Examples

1
2
3
4
5
6
7
8
9
data(soil_phylum_small)
mod1 <- bbdml(formula = OTU.1 ~ DayAmdmt,
phi.formula = ~ DayAmdmt,
data = soil_phylum_small)

mod2 <- bbdml(formula = OTU.1 ~ 1,
phi.formula = ~ 1,
data = soil_phylum_small)
lrtest(mod1, mod2)

corncob documentation built on March 11, 2021, 5:06 p.m.