calc_model_sum_stat: Function to Calculate Summary Measures from Multiple Runs of...

Description Usage Arguments Value Examples

View source: R/calc_model_sum_stat.R

Description

Function to Calculate Summary Measures from Multiple Runs of the Sutherland et al.'s Model

Usage

1
2
calc_model_sum_stat(x, ci_level = 0.95, ci_space = "-",
  round_level = 0)

Arguments

x

A list of multiple simulation runs of a singl table as produced by AssessBCGPolicyChange.

ci_level

Numeric, specifies the confidence level to use. Defaults to 0.95.

ci_space

Character, string to use to seperate confidence intervals, defaults to "-"

round_level

Integer, the number of digits to which to round the summarised results. Defaults to 0

Value

A list of tables for a set of summary measures. These are; mean with CI, median, 2.5 97.5

Examples

1
2
3
4
5
## Run multiple model simulations
model_sims <- simulate_sutherland_model(cores = 1)

## Summarise the Total effects of ending the scheme table
calc_model_sum_stat(model_sims[["Table 5 - Total Effects of ending the schools BCG scheme"]])

seabbs/AssessBCGPolicyChange documentation built on Dec. 24, 2019, 11:56 a.m.