model.matrix.cmp: Extract the Design Matrix from a COM-Poisson Model Fit

View source: R/summarize_extract.R

model.matrix.cmpR Documentation

Extract the Design Matrix from a COM-Poisson Model Fit

Description

Extract the Design Matrix from a COM-Poisson Model Fit

Usage

## S3 method for class 'cmp'
model.matrix(object, ...)

Arguments

object

an object class 'cmp' object, obtained from a call to glm.cmp

...

other arguments passed to or from other methods (currently unused).

Value

The method will return the saved model.matrix used when fitting the cmp model.

Examples

data(attendance)
M.attendance <- glm.cmp(daysabs ~ gender + math + prog, data = attendance)
model.matrix(M.attendance)

data(sitophilus)
M.sit <- glm.cmp(formula = ninsect ~ extract, formula_nu = ~extract, data = sitophilus)
model.matrix(M.sit)


thomas-fung/mpcmp documentation built on June 13, 2022, 6:20 p.m.