Learn R Programming

feisr (version 1.3.0)

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

Arguments

object

an object of class "feis".

...

further arguments.

Value

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

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

feis, model.matrix

Examples

Run this code
# NOT RUN {
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