Make model string of Stan's functions model bloc
make_model_string_functions.RdCreate the Stan string encompassed by functions {}
Arguments
- analysis_obj
Analysis. Object of classAnalysiscreated bypsborrow2:::.analysis_obj().
Examples
anls_obj <- psborrow2:::.analysis_obj(
data_matrix = example_matrix,
outcome = exp_surv_dist("time", "cnsr", normal_prior(0, 100)),
borrowing = borrowing_details(
"Full borrowing",
"ext"
),
treatment = treatment_details("trt", normal_prior(0, 100))
)
psborrow2:::make_model_string_functions(anls_obj)
#> functions {
#>
#> }