Wald-test approximation for CIs and p-values
The Wald-test approximation treats t-values as Wald z. Since the t distribution converges to the z distribution as degrees of freedom increase, this is like assuming infinite degrees of freedom. While this is unambiguously anti-conservative, this approximation appears as reasonable for reasonable sample sizes (Barr et al., 2013). That is, if we take the p-value to measure the probability of a false positive, this approximation produces a higher false positive rate than the nominal 5% at p = 0.05.
ci_wald( model, ci = 0.95, dof = NULL, effects = c("fixed", "random", "all"), component = c("all", "conditional", "zi", "zero_inflated", "dispersion", "precision", "scale", "smooth_terms", "full", "marginal"), robust = FALSE, ... ) p_value_wald(model, ...) ## S3 method for class 'merMod' p_value_wald(model, dof = Inf, ...)
model |
A statistical model. |
ci |
Confidence Interval (CI) level. Default to 0.95 (95%). |
dof |
Degrees of Freedom. If not specified, for |
effects |
Should standard errors for fixed effects or random effects be returned? Only applies to mixed models. May be abbreviated. When standard errors for random effects are requested, for each grouping factor a list of standard errors (per group level) for random intercepts and slopes is returned. |
component |
Should all parameters, parameters for the conditional model,
or for the zero-inflated part of the model be returned? Applies to models
with zero-inflated component. |
robust |
Logical, if |
... |
Arguments passed down to |
A data frame.
Barr, D. J. (2013). Random effects structure for testing interactions in linear mixed-effects models. Frontiers in psychology, 4, 328.
if (require("lme4")) { model <- lmer(Petal.Length ~ Sepal.Length + (1 | Species), data = iris) p_value_wald(model) ci_wald(model, ci = c(0.90, 0.95)) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.