Learn R Programming

survivALL (version 0.9.3)

bootstrapThresholds: Calculate per-separation point hazard ratio thresholds

Description

Calculate per-separation point hazard ratio thresholds

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab