Description Usage Arguments Examples
View source: R/boosting_function.R
This function allows you to visualize the coefficient paths of the boosting algorithm.
1 2 |
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 |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.