Learn R Programming

cosso (version 2.0-2)

plot.cosso: Plot method for COSSO object

Description

Plot $L_2$ norm solution path or main effects of selected functional components

Usage

## S3 method for class 'cosso':
plot(x,M,plottype =c("Path","Functionals"),eps=1e-10,...)

Arguments

x
a cosso object
M
a smoothing parameter value. M should be taken between 0 and p. Arguement required when plottype="Functionals"
plottype
either Path (default) or Functionals. The Path plot shows the $L_2$ norm path for each functional component as a function of smoothing parameter M. The Functional plot shows the estimated functional components f
eps
an effective zero, default is 1e-10
...
additional arguments for plot generic

Value

  • NULL

References

Lin, Y and Zhang, H. H. (2006). "Component Selection and Smoothing in Smoothing Spline Analysis of Variance Models," Annals of Statistics, 34, 2272--2297. Storlie, C. B., Bondell, H. D., Reich, B. J. and Zhang, H. H. (2011). "Surface Estimation, Variable Selection, and the Nonparametric Oracle Property," Statistica Sinica, 21, 679--705.

See Also

predict.cosso

Examples

Run this code
data(ozone)
cossoObj <- cosso(x=ozone[,-1],y=ozone[,1],nbasis=100)
plot.cosso(cossoObj,plottype="Path")
plot.cosso(cossoObj,M=2,plottype="Functionals")

Run the code above in your browser using DataLab