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. 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 for each input variable at a particular smoothing parameter M. Abbreviations are allowed.

eps

an effective zero, default is 1e-7.

...

additional arguments for plot generic.

Value

NULL

Author(s)

Hao Helen Zhang and Chen-Yen Lin

See Also

predict.cosso

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-1 Index]