Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

model.matrix.feis

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

Examples

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

feisr

Estimating Fixed Effects Individual Slope Models

v1.2.0
GPL (>= 2)
Authors
Tobias Ruettenauer [aut, cre] (<https://orcid.org/0000-0001-5747-9735>), Volker Ludwig [aut] (<https://orcid.org/0000-0003-3118-3172>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.