| model.matrix.feis | R Documentation |
Methods to extract transformed model matrix for "feis" objects.
## S3 method for class 'feis' model.matrix(object, ...)
object |
an object of class " |
... |
further arguments. |
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().
An object of class "matrix" for model.matrix.
feis, model.matrix
data("mwp", package = "feisr")
feis.mod <- feis(lnw ~ marry + as.factor(yeargr) | exp,
data = mwp, id = "id")
mm <- model.matrix(feis.mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.