Learn R Programming

monitOS (version 0.1.6)

calc_predictive: Calculate posterior predictive probability of ruling out lhr_null at final OS analysis

Description

Calculates the posterior predictive probability of 'ruling out' lhr_null at final OS analysis given current estimate of OS log-HR is lhr_cont_k, for k=1, ..., K-1

Usage

calc_predictive(lhr_con, events)

Value

vector of length K-1: continuation thresholds at analyses k=1, ..., K-1 expressed on scale of posterior predictive probability of ruling out lhr_null at final OS analysis

Arguments

lhr_con

vector of length K (# number of looks at OS data) containing 'continuation' thresholds on log-HR scale

events

vector length K - number of OS events at each look at the data

Examples

Run this code
lhr_con <- c(0.2, 0.15, 0.1)
events <- c(100, 200, 300)
calc_predictive(lhr_con, events)

Run the code above in your browser using DataLab