The results-only output: one row per target with its posterior median and credible interval, without the input sheets. For a user who wants to load the estimates into something other than a spreadsheet.
Arguments
- results
data.frame of summarized targets, as returned by
summarize_targets().- path
character; destination
.csvpath.- overwrite
logical;
TRUEto replace an existing file.
Examples
res <- data.frame(
target_id = "1", loc_id = "A", cohort = 5L, age = 5L, dose = 2L,
n_draws = 100L, est_median = 0.8, est_lower = 0.7, est_upper = 0.9,
ci_level = 0.95
)
out <- file.path(tempdir(), "results.csv")
write_results_csv(res, out, overwrite = TRUE)