R/priors_calibration.R
calibrate_quartiles.Rd
Calibrates prior distributions for parametric survival analysis based on median survival and interquartile range. Returns a list of prior distribution for the intercepts and auxiliary parameters.
median survival
interquartile range of the survival
pre-specified standard deviation of the prior distributions (either a single value that is used for both the intercept and auxiliary parameter or a vector where the first value corresponds to the sd for the prior distribution on the intercept and the second value to the sd for the prior distribution on the auxiliary parameter)
vector of parametric families for which prior distributions ought to be calibrated
whether debug information be printed
search boundaries for the intercept parameter
search boundaries for the auxiliary parameter
returns a list of prior distribution for the intercepts and auxiliary parameters.
priors <- calibrate_quartiles(median_t = 5, iq_range_t = 10, prior_sd = 0.5)