oscar.bs.visu | R Documentation |
This function visualizes bootstrapped model coefficients over multiple bootstrap runs as lines in a graph
oscar.bs.visu(bs, intercept = FALSE, add = FALSE)
bs |
Bootstrapped 3-dimensional array for an oscar object as produced by oscar.bs |
intercept |
Whether model intercept should be plotted also as a coefficient, Default: FALSE |
add |
Should plot be added on top of an existing plot device |
This is a plotting function that does not return anything, but instead draws on an existing or 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.visu(fit_bs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.