prior_haz_const {survextrap} | R Documentation |
Summarises the prior for the constant hazard implied by a particular prior on the hazard scale parameter and spline specification.
Description
Summarises the prior for the constant hazard implied by a particular
prior on the hazard scale parameter and M-spline specification,
when the spline coefficients are fixed to define a constant hazard
using mspline_constant_coefs
.
Usage
prior_haz_const(
mspline,
prior_hscale = p_normal(0, 20),
quantiles = c(0.025, 0.5, 0.975)
)
Arguments
mspline |
A list of control parameters defining the spline model.
If there are external data, and both
|
prior_hscale |
Prior for the baseline log hazard scale
parameter ( Note that "Baseline" is defined by the continuous covariates taking a value of zero and factor covariates taking their reference level. To use a different baseline, the data should be transformed appropriately beforehand, so that a value of zero has a different meaning. For continuous covariates, it helps for both computation and interpretation to define the value of zero to denote a typical value in the data, e.g. the mean. |
quantiles |
Quantiles used to summarise the implied prior distributions of the simulated quantities. |
Value
A data frame with columns haz
for the hazard and mean
for the inverse hazard (on the mean survival scale) and rows for three summary quantiles.
See Also
p_meansurv
, mspline_constant_coefs