Learn R Programming

corncob (version 0.4.2)

checkNested: Check for nested models

Description

Check for nested models

Usage

checkNested(mod, mod_null)

Value

TRUE if mod_null is nested within mod, otherwise it throws an error.

Arguments

mod

an object of class bbdml

mod_null

an object of class bbdml

Examples

Run this code
data(soil_phylum_small_otu1)
mod1 <- bbdml(formula = cbind(W, M - W) ~ DayAmdmt,
phi.formula = ~ DayAmdmt,
data = soil_phylum_small_otu1)

mod2 <- bbdml(formula = cbind(W, M - W) ~ 1,
phi.formula = ~ 1,
data = soil_phylum_small_otu1)

checkNested(mod1, mod2)

Run the code above in your browser using DataLab