plot.cosso | R Documentation |
Plot L_2
norm solution path or main effects of selected functional components
## S3 method for class 'cosso'
plot(x,M,plottype =c("Path","Functionals"),eps=1e-7,...)
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. |
NULL
Hao Helen Zhang and Chen-Yen Lin
predict.cosso
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.