Description Usage Arguments Value Examples
View source: R/singboost_plot.R
Plot function for the SingBoost coefficient paths
1 | singboost.plot(mod, M, m_iter, subnames = FALSE)
|
mod |
singboost object. |
M |
An integer between 2 and |
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. |
Nothing. Plots SingBoost coefficient paths
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)}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.