Learn R Programming

refund (version 0.1-6)

plot.peer: Plotting of estimated regression functions obtained through peer()

Description

Plots the estimate of components of estimated regression function obtained from a peer object along with the point-wise confidence band.

Usage

## S3 method for class 'peer':
plot(x, conf=0.95, ...)

Arguments

x
an object of class "peer".
conf
confidence level of pointwise confidence band.
...
additional arguments passed to the plot function.

Details

Plots the estimated regression function over sampling points (x-axis). The confidence interval produced is pointwise and no multiplicity correction is made.

References

Kundu, M. G., Harezlak, J., and Randolph, T. W. (2012). Longitudinal functional models with structured penalties. (please contact J. Harezlak at harezlak@iupui.edu) Randolph, T. W., Harezlak, J, and Feng, Z. (2012). Structured penalties for functional linear models - partially empirical eigenvectors for regression. Electronic Journal of Statistics, 6, 323--353.

See Also

peer, lpeer, plot.lpeer

Examples

Run this code
data(DTI)
cca = DTI$cca[which(DTI$case == 1),]
DTI = DTI[which(DTI$case == 1),]
fit.cca.peer1 = peer(Y=DTI$pasat, funcs = cca)
plot(fit.cca.peer1)

Run the code above in your browser using DataLab