plot.boosting: Boosting plot function

Description Usage Arguments Examples

View source: R/boosting_function.R

Description

This function allows you to visualize the coefficient paths of the boosting algorithm.

Usage

1
2
## S3 method for class 'boosting'
plot(x, y = NULL, type = "frequency", ...)

Arguments

x

output from the boosting_core function.

y

y coordinates of plot, default is NULL.

type

specifies type of coefficient plot. Default value is frequency which plots the proportion of variables selected. Alternatively type set to "coefficients" plots the coefficient path for each variable.

...

ignored

Examples

1
2
3
4
5
6
data <- simulate_survival_cox(true_beta=c(1,1,1,1,1,0,0,0,0,0))
formula <- as.formula("Surv(time,delta) ~ strata(strata_idx) + V1 + V2 + 
V3 + V4 + V5 + V6 + V7 + V8 + V9 + V10" )
boosting.output <- boosting_core(formula, data, rate=0.1, num_iter=500)
plot.boosting(boosting.output)
plot.boosting(boosting.output, type="coefficients")

SurvBoost documentation built on Sept. 20, 2019, 5:04 p.m.