get_single_conditional_times: Generate ONE sample from the posterior predictive of...

Description Usage Arguments

Description

Get the posterior predictive distribution of conditional survival times for a SINGLE posterior sample. This function should be interated over all posterior samples.

Usage

1
2
get_single_conditional_times(time, event, trt, distribution,
  n_events = NA, params)

Arguments

time

positive numeric. Survival times

event

logical or 0/1. event = 1 indicates failure, event = 0 indicates censoring

trt

0/1 vector. Indicates assignment to treatment or control

n_events

numeric or NULL. How many events should be observed before censoring. If NA, there will be no censoring time.

log_HR

log hazard ratio, usually posterior sample


kravitz-eli/simCondSurv documentation built on April 14, 2020, 6:02 a.m.