oscar.bs.k | R Documentation |
The function reformats bootstrapped runs to a single long data.frame, where all bootstrapped runs are covered along with the choices for the variables at each cardinality 'k'.
oscar.bs.k(bs)
bs |
Bootstrapped list from oscar.bs |
Reformatted data.frame
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)
ll <- oscar.bs.k(fit_bs)
head(ll)
tail(ll)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.