waldchisq | R Documentation |
Wald-type chi-squared test
waldchisq(
mod,
mod_null = NULL,
restrictions = NULL,
restrictions.phi = NULL,
contrasts_DA = NULL,
contrasts_DV = NULL,
robust = FALSE
)
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 |
robust |
Should robust standard errors be used? If not, model-based standard arras are used. Logical, defaults to |
Matrix with wald test statistics and p-values. Only performs univariate tests.
P-value from Wald test.
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)
# Example using mod_null
waldchisq(mod = mod1, mod_null = mod2)
waldchisq(mod = mod1, mod_null = mod2, robust = TRUE)
# 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")
waldchisq(mod = mod1, restrictions = 2, restrictions.phi = 2, robust = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.