oscar.bs.visu {oscar}R Documentation

Visualize bootstrapping of a fit oscar object

Description

This function visualizes bootstrapped model coefficients over multiple bootstrap runs as lines in a graph

Usage

oscar.bs.visu(bs, intercept = FALSE, add = FALSE)

Arguments

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

Value

This is a plotting function that does not return anything, but instead draws on an existing or a new graphics device.

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)
  oscar.bs.visu(fit_bs)
}

[Package oscar version 1.2.1 Index]