Analysis Class
Analysis-class.RdA class for defining Analysis details. Objects of class
Analysis should not be created directly but by the constructor
analysis_details().
Slots
data_matrixmatrix. The data matrix, including all covariates to be adjusted for, all relevant outcome variables, and treatment arm and external control arm flags.
covariatesCovariate. Object of classCovariateas output by the functioncovariate_details().outcomeOutcome. Object of classOutcomeas output byexp_surv_dist(),weib_ph_surv_dist(), orlogistic_bin_outcome().borrowingBorrowing. Object of classBorrowingas output byborrowing_details().treatmentTreatment. Object of classTreatmentas output bytreatment_details().model_stringcharacter. The string that contains the full Stan model code to be compiled.
model_and_data.A named list containing two items: 1)
stan_model, the compiled Stan model as output by cmdstanr::cmdstan_model, and 2)data_in, a named list of inputs that will be passed to the compiled model.ready_to_samplelogical. Is the object ready to sample?