Performs Wald tests of the significance for the linear predictor components by response variables. This function is useful for joint hypothesis tests of regression coefficients associated with categorical covariates with more than two levels. It is not designed for model comparison.

# S3 method for mcglm
anova(object, ...)

Arguments

object

an object of class mcglm, usually, a result of a call to mcglm() function.

...

additional arguments affecting the summary produced. Note that there is no extra options for mcglm object class.

Value

A data.frame with Chi-square statistic to test the null hypothesis of a parameter, or a set of parameters, be zero. Degree of freedom (Df) and p-values. The Wald test based on the observed covariance matrix of the parameters is used.

Examples

x1 <- seq(-1, 1, l = 100) x2 <- gl(5, 20) beta <- c(5, 0, -2, -1, 1, 2) X <- model.matrix(~ x1 + x2) set.seed(123) y <- rnorm(100, mean = X%*%beta, sd = 1) data = data.frame("y" = y, "x1" = x1, "x2" = x2) fit.anova <- mcglm(c(y ~ x1 + x2), list(mc_id(data)), data = data)
#> Automatic initial values selected.
anova(fit.anova)
#> Wald test for fixed effects #> Call: y ~ x1 + x2 #> <environment: 0x556091284610> #> #> Covariate Chi.Square Df p.value #> 1 x1 0.8944 1 0.3443 #> 2 x22 143.2979 4 0.0000 #>