bootstrapThresholds: Calculate per-separation point hazard ratio thresholds

Description Usage Arguments Value Examples

Description

Calculate per-separation point hazard ratio thresholds

Usage

1
bootstrapThresholds(bs_dfr, n_sd = 1.96)

Arguments

bs_dfr

A matrix of bootstrapped hazard ratio computations as ordered by a random measurement vector. Typically consisting of 5-10,000 repeat samplings

n_sd

The number of standard deviations used to define threshold width. 95 deviation of 1.96

Value

A dataframe of per-separation point mean, upper and lower thresholds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(nki_subset)
library(Biobase)
library(magrittr)
library(ggplot2)

#simulate example HR bootstrapped data
bs_dfr <- matrix(rnorm(150000), ncol = 1000, nrow = 150)

#calculate thresholds
thresholds <- bootstrapThresholds(bs_dfr)

pearcedom/srvALL documentation built on May 24, 2019, 2:49 p.m.