Prepare Stan data inputs
prepare_stan_data_inputs.Rd
Create a list of data in the correct format for Stan
Arguments
- analysis_obj
Analysis
. Object of classAnalysis
created bypsborrow2:::.analysis_obj()
.
Examples
anls_obj <- psborrow2:::.analysis_obj(
data_matrix = example_matrix,
outcome = exp_surv_dist("time", "cnsr"),
borrowing = borrowing_details(
"BDB",
normal_prior(0, 100),
"ext",
exponential_prior(0.001)
),
treatment = treatment_details("trt", normal_prior(0, 100))
)
anls_obj@model_and_data <- list(
data_in = psborrow2:::prepare_stan_data_inputs(anls_obj)
)