pbWald: Parametric bootstrap Wald test

View source: R/pbWald.R

pbWaldR Documentation

Parametric bootstrap Wald test

Description

Parametric bootstrap Wald test

Usage

pbWald(mod, mod_null, B = 1000)

Arguments

mod

an object of class bbdml

mod_null

an object of class bbdml, should be nested within mod

B

Integer. Defaults to 1000. Number of bootstrap iterations.

Value

P-value from parametric bootstrap Wald test.

Examples

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)
pbWald(mod1, mod2, B = 50)

corncob documentation built on Aug. 31, 2023, 9:06 a.m.