fitted.plmm: Extract Model Fitted Values

Description Usage Arguments Details Value See Also Examples

View source: R/fitted.plmm.R

Description

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

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'plmm'
fitted(object,...)
## S3 method for class 'wplmm'
fitted(object,...)
## S3 method for class 'plmm'
fitted.values(object,...)
## S3 method for class 'wplmm'
fitted.values(object,...)

Arguments

object

a model fitted with plmm or wplmm.

...

other arguments.

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.

Value

The predicted conditional response values.

See Also

plmm, wplmm, predict

Examples

1
2
3
data(plmm.data)
model <- plmm(y0~x1+x2+x3|t1, random=cluster, data=plmm.data)
fitted(model)

plmm documentation built on May 2, 2019, 7:29 a.m.