wald.test(Sigma, b, Terms = NULL, L = NULL, H0 = NULL,
df = NULL, verbose = FALSE)
## S3 method for class 'wald.test':
print(x, digits = 2, ...)lm, glm, ...).Sigma. These coefficients are usually extracted from
one of the fitting functions available in R(e.g., lm, glm,...).Sigma. Default is Nb, such as its product with b i.e., L %*% b
gives the linear combinations of the coefficients to be tested. Default is NULL.Terms or
must have the same number of columns as L. Default to 0 for all the coefficients to be tested.b and Sigma were fitted. Default to NULL, for no
$F$ test. See the sectionFALSE, providing minimum output.print.wald.test, printed with print.wald.test.Terms or L must be given. When L is given, it must have the same number of
columns as the length of b, and the same number of rows as the number of linear combinations of coefficients.
When df is given, the $\chi^2$ Wald statistic is divided by m = the number of
linear combinations of coefficients to be tested (i.e., length(Terms) or nrow(L)). Under the null
hypothesis H0, this new statistic follows an $F(m, df)$ distribution.vcovdata(orob2)
fm <- quasibin(cbind(y, n - y) ~ seed * root, data = orob2)
# Wald test for the effect of root
wald.test(b = coef(fm), Sigma = vcov(fm), Terms = 3:4)Run the code above in your browser using DataLab