Creates a formal S3 object containing posterior samples and metadata from EXNEX model fitting.
Usage
new_exnex_surv(
draws,
data,
priors,
resolved_priors = priors,
iter,
warmup,
chains,
blueprint
)Arguments
- draws
A data frame containing posterior samples. Columns are: theta_1, ..., theta_K, beta_1, ..., beta_P (if P > 0), sigma2.
- data
A list containing: - time: Observed follow-up times - event: Event indicators (0/1) - group: Group assignments - X: Covariate matrix (can be empty) - n: Total number of observations - n_groups: Number of groups - n_covariates: Number of covariates - cov_names: Covariate column names
- priors
A list of prior specifications used for fitting.
- resolved_priors
A named list of the prior hyperparameters actually used (defaults merged with any overrides supplied in
priors).- iter
Total MCMC iterations performed.
- warmup
Number of warmup iterations discarded.
- chains
Number of chains run.
- blueprint
The hardhat blueprint for the original formula/data structure.