| model.matrix.gnm {gnm} | R Documentation |
This method extracts or evaluates a local design matrix for a generalized nonlinear model
## S3 method for class 'gnm': model.matrix(object, coef = NULL, ...)
object |
an object of class gnm. |
coef |
if specified, the vector of coefficients at which the local design matrix is evaluated. |
... |
further arguments. |
If coef = NULL, the local design matrix evaluated at
coef(object) (extracted from object if possible).
Otherwise, the local design matrix evaluated at coef.
Heather Turner
example(mentalHealth) model.matrix(RC1model) model.matrix(RC1model, coef = seq(coef(RC1model)))