summaryWald: Model summary with Wald (instead of z) test statistics

View source: R/summaryWald.R

summaryWaldR Documentation

Model summary with Wald (instead of z) test statistics

Description

This function produces a summary of a generalized linear model, with the Wald test (instead of the z test) and associated statistics.

Usage

summaryWald(model, interceptLast = TRUE)

Arguments

model

a model object of class "glm".

interceptLast

logical, whether to place the intercept in the last (rasther than the first) row of the output. Defaults to TRUE.

Details

This function requires the aod package, whose wald.test function is used for computing the Wald test.

Value

This function returns a data frame with the model summary statistics.

Author(s)

A. Marcia Barbosa

See Also

summary

Examples

# 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)

fuzzySim documentation built on March 19, 2024, 3:09 a.m.