model.matrix.feis: model.matrix for feis objects

View source: R/methods.R

model.matrix.feisR 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 "feis".

...

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

feis, model.matrix

Examples

data("mwp", package = "feisr")
feis.mod <- feis(lnw ~ marry + as.factor(yeargr) | exp,
                 data = mwp, id = "id")
mm <- model.matrix(feis.mod)


feisr documentation built on April 1, 2022, 5:06 p.m.