prep_all_survivals: prep_all_survivals

Description Usage Arguments Value

Description

A function that computes the survival function for multiple treatments based on a study of interest

Usage

1
2
prep_all_survivals(nmafit, study, treatments = nmafit$treatment,
  timesteps = seq(0, 30))

Arguments

nmafit

a survnma object to be used for subsequent calculations

study

a string of the study of interest

treatments

a string or vector of treatments to be compared

timesteps

Vector of evaluation times. Should be of length > 2

Value

a dataframe with columns corresponding to c("curve", "time", "mean", "lci", "uci", "label") where curve indicates the family of distribution used for survnma object and label indicating the corresponding treatment considered. uci and lci indicate the upper and lower bounds of the credible interval for the mean. the dataframe is to be used for plotting via the survival_plot function


certara/survivalnma documentation built on June 5, 2019, 11:02 a.m.