coef.mixpoissonreg: Coef Method for 'mixpoissonreg' Objects.

Description Usage Arguments Value See Also Examples

View source: R/2_diagnostic_functions.R

Description

Extract model coefficients of fitted mixed Poisson regression models. The parameters arguments allows one to chose if all coefficients should be extracted, with parameters = 'all'; if the coefficients of the mean-related parameters should be extracted, with parameters = 'mean'; if the coefficients of the precision-related parameters should be extracted, with parameters = 'precision'.

Usage

1
2
## S3 method for class 'mixpoissonreg'
coef(object, parameters = c("all", "mean", "precision"), ...)

Arguments

object

object of class "mixpoissonreg" containing results from the fitted model.

parameters

a string to determine which coefficients should be extracted: 'all' extracts all coefficients, 'mean' extracts the coefficients of the mean parameters and 'precision' extracts coefficients of the precision parameters.

...

further arguments passed to or from other methods.

Value

A vector containing the coefficients of a mixpoissonreg object.

See Also

vcov.mixpoissonreg

Examples

1
2
daysabs_prog <- mixpoissonreg(daysabs ~ prog, data = Attendance)
coef(daysabs_prog)

mixpoissonreg documentation built on March 11, 2021, 1:07 a.m.