prep_all_hazards: prep_all_hazards

Description Usage Arguments Value

View source: R/prep_all_hazards.R

Description

A function that computes the hazard function and thus hazard ratio for multiple treatments based on a study of interest

Usage

1
prep_all_hazards(nmafit, treatments = NULL, reference, timesteps = seq(0, 30))

Arguments

nmafit

a survnma object to be used for subsequent calculations

treatments

a string or vector of treatments to be compared

reference

a base treatment to be used for comparison when calculating the hazard ratio

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 hazard_plot function


certara/survivalnma documentation built on Oct. 17, 2020, 12:34 a.m.