plot.cosso {cosso} | R Documentation |
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-7,...)
Arguments
x |
a cosso object. |
M |
a smoothing parameter value. Argument required when |
plottype |
either |
eps |
an effective zero, default is |
... |
additional arguments for plot generic. |
Value
NULL
Author(s)
Hao Helen Zhang and Chen-Yen Lin
See Also
Examples
set.seed(20130310)
x=cbind(rbinom(200,1,.7),matrix(runif(200*7,0,1),nc=7))
trueProb=1/(1+exp(-x[,1]-sin(2*pi*x[,2])-5*(x[,4]-0.4)^2))
y=rbinom(200,1,trueProb)
B.Obj=cosso(x,y,family="Bin")
plot.cosso(B.Obj,plottype="Path")
plot.cosso(B.Obj,M=2,plottype="Func")
[Package cosso version 2.1-2 Index]