Skip to content

AnnikaStr/DeselectBoost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

DeselectBoost

Function to enhance the sparsity of statistical boosting models by deselecting the base-learners with a minor impact on the total risk reduction. The deselection is done by considering the attributable (default) or cumulative risk reduction.

Example

data("bodyfat", package = "TH.data")

### linear model 
bodyfat.glm <- glmboost(DEXfat ~ ., data = bodyfat)
cvr <- cvrisk(bodyfat.glm, grid = 1:500)
mstop(bodyfat.glm) <- mstop(cvr)

# deselection via attributable risk reduction (1% of the total risk reduction)
bodyfat.db <- DeselectBoost(bodyfat.gb, fam = Gaussian())  
coef(bodyfat.db)

# threshold value of 0.1 (10% of the total risk reduction)
bodyfat.db <- DeselectBoost(bodyfat.glm, fam = Gaussian(), tau = 0.1)    
coef(bodyfat.db)

# deselection via cumulative risk reduction
DeselectBoost(bodyfat.gb, fam = Gaussian(), method = 'cumulative')

### additive model
bodyfat.gam <- gamboost(DEXfat ~ ., data = bodyfat)
coef(bodyfat.gam)

bodyfat.db1 <- DeselectBoost(bodyfat.gam, fam = Gaussian(), data = bodyfat)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages