Last data update: 2014.03.03

R: Wald test for generalized linear models
wald.testR Documentation

Wald test for generalized linear models

Description

Computes the Wald score test for the coefficients of a generalized linear model.

Usage

wald.test(model = model, terms)

Arguments

model

an object that stores the results of glm fit of the model under the null hypothesis.

terms

number of coefficients to be tested under null hypothesis

Details

The object model is obtained using the usual options passed to the glm function.

Value

The function wald.test() returns the following list of values:

W

the value of the Wald statistic.

pvalue

the p value of test under null hypothesis chi-square distribution.

Author(s)

Damiao N. da Silva damiao@ccet.ufrn.br

Antonio Hermes M. da Silva-Junior hermes@ccet.ufrn.br

References

McCullagh P, Nelder J (1989). Generalized Linear Models. Chapman & Hall/CRC, London.

See Also

lr.test

mdscore

Examples

data(strength)
fitf <- glm(y ~ cut * lot, data = strength,family = inverse.gaussian("inverse"))
wald.test(fitf,term=9)

Results