Description Usage Arguments Value Examples
View source: R/summarize_extract.R
Extract the Design Matrix from a COM-Poisson Model Fit
1 2 | ## S3 method for class 'cmp'
model.matrix(object, ...)
|
object |
an object class 'cmp' object, obtained from a call to |
... |
other arguments passed to or from other methods (currently unused). |
The method will return the saved model.matrix
used when fitting the cmp model.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.