| Analysis-class {psborrow2} | R Documentation |
Analysis Class
Description
A class for defining Analysis details. Objects of class
Analysis should not be created directly but by the constructor
create_analysis_obj().
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 byoutcome_surv_exponential(),outcome_surv_weibull_ph(), oroutcome_bin_logistic().borrowingBorrowing. Object of classBorrowingas output byborrowing_full(),borrowing_none(), orborrowing_hierarchical_commensurate().treatmentTreatment. Object of classTreatmentas output bytreatment_details().model_stringcharacter. The string that contains the full Stan model code to be compiled.
modelCmdStanModel. The compiled Stan model as output bycmdstanr::cmdstan_model()ready_to_samplelogical. Is the object ready to sample?