Description Usage Arguments Value
View source: R/prep_all_hazards.R
A function that computes the hazard function and thus hazard ratio for multiple treatments based on a study of interest
1 | prep_all_hazards(nmafit, treatments = NULL, reference, timesteps = seq(0, 30))
|
nmafit |
a |
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.