Learn R Programming

fuzzySim (version 4.10.7)

summaryWald: 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)

Value

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

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.

Author

A. Marcia Barbosa

Details

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

See Also

Examples

Run this code
# 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