Create a two or three dimensional plot of the estimated nonparametric function.
Usage
## S3 method for class 'plmm'
plot(x, data, ...)
## S3 method for class 'wplmm'
plot(x, data, ...)
Arguments
x
a model fitted using a model fitting function plmm or wplmm.
data
an optional data frame containing the variables in the model. If relevant variables are not found in data, the variables are taken from the environment plmm was called from.
...
optional arguments relevant to creating a plot using sm.regression.
Details
Along the vertical axis is the value obtained by subtracting the estimated fixed parametric component from the response. A two or three dimensional plot is created using sm.regression. Some of the relevant optional arguments include display, nbins and ngrid. See sm.options.
See Also
sm.regression, sm.options
Examples
data(plmm.data)
model <- plmm(y0~x1+x2+x3|t1, random=cluster, data=plmm.data)
plot(model, data=plmm.data, ann="F")
title(ylab=expression(paste("y-X",hat(beta))))
## Not run:
model <- plmm(y2~x1+x2+x3|t1+t2, random=cluster, data=plmm.data)
plot(model, data=plmm.data, display="rgl")
## End(Not run)