Learn R Programming

plmm (version 0.1-1)

fitted: Extract Model Fitted Values

Description

Extract the predicted response values of a model fitted using a model fitting function plmm or wplmm. fitted.values is an alias.

Usage

"fitted"(object,...) "fitted"(object,...) "fitted.values"(object,...) "fitted.values"(object,...)

Arguments

object
a model fitted with plmm or wplmm.
...
other arguments.

Value

The predicted conditional response values.

Details

The fitted value is defined as the conditional prediction, i.e. the sum of the estimated fixed components (parametric and nonparametric) and the predicted random intercept. Unconditional predictions (not conditioned on the cluster which the predicted response belongs to) can be obtained using predict.

See Also

plmm, wplmm, predict

Examples

Run this code
data(plmm.data)
model <- plmm(y0~x1+x2+x3|t1, random=cluster, data=plmm.data)
fitted(model)

Run the code above in your browser using DataLab