singboost.plot: Plot function for the SingBoost coefficient paths

Description Usage Arguments Value Examples

View source: R/singboost_plot.R

Description

Plot function for the SingBoost coefficient paths

Usage

1
singboost.plot(mod, M, m_iter, subnames = FALSE)

Arguments

mod

singboost object.

M

An integer between 2 and m_iter. Indicates that in every M-th iteration, a singular iteration will be performed. Default is 10.

m_iter

Number of SingBoost iterations. Default is 100.

subnames

Use it only if the variable names are of the form ”letter plus number”. Better just ignore it.

Value

Nothing. Plots SingBoost coefficient paths

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{glmres<-glmboost(Sepal.Length~.,iris)
glmres
attributes(varimp(glmres))$self
attributes(varimp(glmres))$var
firis<-as.formula(Sepal.Length~.)
Xiris<-model.matrix(firis,iris)
Diris<-data.frame(Xiris[,-1],iris$Sepal.Length)
plot(glmres)
singpath<-path.singboost(Diris)
singboost.plot(singpath,10,100,subnames=FALSE)}

gfboost documentation built on Jan. 7, 2022, 5:06 p.m.