Description Usage Arguments Value
View source: R/prep_all_survivals.R
A function that computes the survival function for multiple treatments based on a study of interest
1 2 3 4 5 6 | prep_all_survivals(
nmafit,
study,
treatments = nmafit$treatment,
timesteps = seq(0, 30)
)
|
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.