A simplified formula based interface to glmBayesMfp
to fit Cox models. Can return
Maximum a posteriori (MAP) model, Median probability model (MPM) or Bayesian model average (BMA).
Provides global empirical Bayes and AIC/BIC based model inference.
coxTBF(
formula,
data,
type,
baseline = "shrunk",
globalEB = FALSE,
IC = FALSE,
sep = FALSE,
keepModelList = FALSE,
...,
overrideConfig
)
data.frame for model variables
type of model to fit, one of "MAP","MPM","BMA","BMAFull"
how to calculate the baseline hazard function. "cox" uses unshrunken coefficients. "shrunk" refits baseline with shrunken coefficients (default).
use global empirical bayes estimate of g (default=FALSE)
use information criteria based model selection (default=FALSE). Either "AIC" or "BIC".
estimate baseline hazard for each estimate of model coefficients (default=FALSE).
keep the model list returned by glmBayesMfp for MAP and MPM models (default=FALSE).
additional arguments to pass to glmBayesMfp
replaces the the MAP model with the given configuration, which is passed to computeModels
An object of S3 class TBFcox
or TBFcox.sep
if sep=TRUE.