This function produces a summary of a generalized linear model, with the Wald test (instead of the z test) and associated statistics.
summaryWald(model, interceptLast = TRUE)
This function returns a data frame with the model summary statistics.
a model object of class "glm".
logical, whether to place the intercept in the last (rasther than the first) row of the output. Defaults to TRUE.
A. Marcia Barbosa
This function requires the aod package, whose wald.test
function is used for computing the Wald test.
# load sample data:
data(rotif.env)
names(rotif.env)
# build a model of a species' occurrence based on
# some of the variables:
model <- glm(Abrigh ~ Area + Altitude + AltitudeRange + HabitatDiversity +
HumanPopulation, family = binomial, data = rotif.env)
# get the Wald-based model summary:
summaryWald(model)
Run the code above in your browser using DataLab