| model.matrix.feis {feisr} | R Documentation |
model.matrix for feis objects
Description
Methods to extract transformed model matrix for "feis" objects.
Usage
## S3 method for class 'feis'
model.matrix(object, ...)
Arguments
object |
an object of class " |
... |
further arguments. |
Details
model.matrix for feis objects returns the model or design matrix
of the respective FEIS model. This is the transformed (de-trended) data,
which is used for estimation of the model in lm().
Value
An object of class "matrix" for model.matrix.
See Also
Examples
data("mwp", package = "feisr")
feis.mod <- feis(lnw ~ marry + as.factor(yeargr) | exp,
data = mwp, id = "id")
mm <- model.matrix(feis.mod)
[Package feisr version 1.3.0 Index]