Make model string of Stan's data block
make_model_string_data.Rd
Create the Stan string encompassed by data {}
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(
"Full borrowing",
normal_prior(0, 100),
"ext"
),
treatment = treatment_details("trt", normal_prior(0, 100))
)
psborrow2:::make_model_string_data(anls_obj)
#> data {
#> int<lower=0> N;
#> vector[N] time;
#> vector[N] cens;
#> vector[N] trt; }