View source: R/utils-uncertainty.R
summarise_uncertainty | R Documentation |
This function takes as input bootstrapped values: Re estimates or others and builds uncertainty intervals from these bootstrapped values.
summarise_uncertainty(
bootstrapped_values,
original_values = NULL,
uncertainty_summary_method = "original estimate - CI from bootstrap estimates",
value_col = "Re_estimate",
output_value_col = "Re_estimate",
bootstrap_id_col = "bootstrap_id",
index_col = "idx",
...
)
bootstrapped_values |
Bootstrap
replicates of the original data.
Must be a dataframe in the long format
with a timestep index column named |
original_values |
Optional. Values of reference
used to construct the uncertainty interval around.
Typically, these are estimates obtained on the original data.
Must be a dataframe with a timestep index column named |
uncertainty_summary_method |
One of these options:
|
value_col |
string. Name of the column containing values. |
output_value_col |
string. Name of the output column with estimated values. |
bootstrap_id_col |
string. Name of the column containing bootstrap samples numbering. Id 0 must correspond to values associated to the original data. |
index_col |
string. Name of the index column. The index tracks which data point in bootstrapped values corresponds to which data point in the original values. |
... |
Arguments passed on to
|
This function is not meant to be needed by regular users.
It is exported as it can be useful when building 'pipes':
sequences of computations that weave together the different
modules provided by estimateR
.
A dataframe containing Re estimates (column 'Re_estimate') and confidence interval boundaries, with 4 columns like so:
index_col
, the timestep index column
A column named output_value_col
,
containing the central values (typically these are Re estimates)
CI_up
, upper limit of the confidence interval
CI_down
, the lower limit of the confidence interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.