powered by
This method extracts or evaluates a local design matrix for a generalized nonlinear model
# S3 method for gnm model.matrix(object, coef = NULL, ...)
If coef = NULL, the local design matrix with columns corresponding to the non-eliminated parameters evaluated at
coef = NULL
coef(object) (extracted from object if possible).
coef(object)
object
Otherwise, the local design matrix evaluated at coef.
coef
an object of class gnm.
gnm
if specified, the vector of (non-eliminated) coefficients at which the local design matrix is evaluated.
further arguments.
Heather Turner
gnm, model.matrix
model.matrix
example(mentalHealth) model.matrix(RC1model) model.matrix(RC1model, coef = seq(coef(RC1model)))
Run the code above in your browser using DataLab