oscar.bs.boxplot | R Documentation |
This function plots as barplots as a function of k-cardinality in what proporties certain coefficients were chosen as non-zero over the bootstrap runs.
oscar.bs.boxplot(bs, ...)
bs |
Bootstrapped 3-dimensional array for an oscar object as produced by oscar.bs |
... |
Additional parameters passed on to barplot |
This is a plotting function that does not return anything, but instead draws on a new graphics device.
if(interactive()){
data(ex)
fit <- oscar(x=ex_X, y=ex_Y, k=ex_K, w=ex_c, family='cox')
fit_bs <- oscar.bs(fit, bootstrap = 20, seed = 123)
oscar.bs.boxplot(fit_bs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.