View source: R/summarize_extract.R
model.matrix.cmp | R Documentation |
Extract the Design Matrix from a COM-Poisson Model Fit
## 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.
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.