Firstly, the function bayessurvreg1 has to be used to
obtain a sample from the posterior distribution of unknown quantities.
Directly, posterior predictive quantiles and means of asked quantities
are computed and stored in files.
Function predictive.control serves only to perform some input
checks inside the main function predictive.
predictive(
formula,
random,
time0 = 0,
data = parent.frame(),
grid,
type,
subset,
na.action = na.fail,
quantile = c(0, 0.025, 0.5, 0.975, 1),
nsimul = list(niter = 10, nwrite = 10),
predict = list(Et=TRUE, t=FALSE, Surv=TRUE,
hazard=FALSE, cum.hazard=FALSE),
store = list(Et=TRUE, t = FALSE, Surv = FALSE,
hazard = FALSE, cum.hazard=FALSE),
Eb0.depend.mix = FALSE,
dir = getwd(),
toler.chol = 1e-10,
toler.qr = 1e-10,
...)predictive.control(predict, store, quantile)
bayessurvreg1.random statement as that one used to sample from the
posterior distribution of unknown quantities by the function
bayessurvreg1.data.frame similar to that one used to obtain a sample from
the posterior distribution. In this new data.framedata or a vector
giving grids of values where predictive survivor functions, hazards, cumulative
hazards are to be evaluated. If it is a vector, same grid is used for all
observations data to be
used. This option will normally not be needed.NAs in the
data. The user is discouraged to change a default value
na.fail.bayessurvreg1 function. FALSE (default) you have the same model as