waldchisq | R Documentation |
Wald-type chi-squared test
waldchisq(
mod,
mod_null = NULL,
restrictions = NULL,
restrictions.phi = NULL,
contrasts_DA = NULL,
contrasts_DV = NULL
)
mod |
an object of class |
mod_null |
Optional. An object of class |
restrictions |
Optional. Defaults to |
restrictions.phi |
Optional. Defaults to |
contrasts_DA |
List. Optional. Constructs a contrast matrix. List elements should be characters specifying contrasts in the parameters within |
contrasts_DV |
List. Optional. Constructs a contrast matrix. List elements should be characters specifying contrasts in the parameters within |
P-value from Wald test.
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)
# Example using mod_null
waldchisq(mod = mod1, mod_null = mod2)
# Example using restrictions and restrictions.phi
waldchisq(mod = mod1, restrictions = 2, restrictions.phi = 2)
waldchisq(mod = mod1, restrictions = "DayAmdmt", restrictions.phi = "DayAmdmt")
waldchisq(mod = mod1, restrictions = 2, restrictions.phi = "DayAmdmt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.