plot.plmm: Nonparametric Function Plot

Description Usage Arguments Details See Also Examples

View source: R/plot.plmm.R

Description

Create a two or three dimensional plot of the estimated nonparametric function.

Usage

1
2
3
4
## 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

1
2
3
4
5
6
7
8
9
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)

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