Skip to contents

A class for defining Analysis details. Objects of class Analysis should not be created directly but by the constructor analysis_details().

Slots

data_matrix

matrix. The data matrix, including all covariates to be adjusted for, all relevant outcome variables, and treatment arm and external control arm flags.

covariates

Covariate. Object of class Covariate as output by the function covariate_details().

outcome

Outcome. Object of class Outcome as output by exp_surv_dist(), weib_ph_surv_dist(), or logistic_bin_outcome().

borrowing

Borrowing. Object of class Borrowing as output by borrowing_details().

treatment

Treatment. Object of class Treatment as output by treatment_details().

model_string

character. 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_sample

logical. Is the object ready to sample?