Learn R Programming

feisr (version 1.3.1)

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

Description

Methods to extract transformed model matrix for "feis" objects.

Usage

# S3 method for feis
model.matrix(object, ...)

Value

An object of class "matrix" for model.matrix.

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().

See Also

Examples

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

Run the code above in your browser using DataLab