This method extracts or evaluates a local design matrix for a generalized nonlinear model
## S3 method for class 'gnm' model.matrix(object, coef = NULL, ...)
an object of class
if specified, the vector of (non-eliminated) coefficients at which the local design matrix is evaluated.
coef = NULL, the local design matrix with columns
corresponding to the non-eliminated parameters evaluated at
coef(object) (extracted from
object if possible).
Otherwise, the local design matrix evaluated at
example(mentalHealth) model.matrix(RC1model) model.matrix(RC1model, coef = seq(coef(RC1model)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.