oscar.bs.k {oscar}R Documentation

Reformatting bootstrap output for cardinality k rows

Description

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'.

Usage

oscar.bs.k(bs)

Arguments

bs

Bootstrapped list from oscar.bs

Value

Reformatted data.frame

Examples

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)
}

[Package oscar version 1.2.1 Index]