Generate a random sample of parameters for each survival distribution. Parameters are sampled using a multivariate normal distribution.
sample_survpars(nsims, x)
nsims | Size of the posterior sample. |
---|---|
x | A list of survival parameters in the same format as ttd.all, ttd.da, or ttd.eular. See the description 'Time to treatment discontinuation' in sample_pars. |
A list of matrices containing random draws of the parameters of the survival distribution. One matrix for the location parameter and one matrix for each of the ancillary parameters.