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

Description Usage Arguments Value Examples

View source: R/summarize_extract.R

Description

Extract the Design Matrix from a COM-Poisson Model Fit

Usage

1
2
## 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

1
2
3
4
5
6
7
8
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)

mpcmp documentation built on Oct. 26, 2020, 9:07 a.m.