| calculate_ci | R Documentation |
calculate_ci() calculates confidence intervals from PsN bootstraps.
calculate_ci(x, parameter = "THETA3", ci_width = 95, exclusions = c(1, 2))
x |
A tibble corresponding to PsN bootstrap output. |
parameter |
The parameter of interest. Defaults to |
ci_width |
The desired confidence interval width. Defaults to |
exclusions |
A numeric vector corresponding to the desired PsN exclusions. Defaults to
|
A tibble that contains:
n_original: The total number of rows.
n_used: The number of successful runs used to calculate the confidence interval.
n_excluded: The number of excluded runs.
parameter: The parameter of interest.
ci_width: The width of the confidence interval.
lower_ci: The lower value of the calculated confidence interval.
point_estimate: The point estimate from the original dataset.
upper_ci: The upper value of the calculated confidence interval.
calculate_ci() also provides verbose output in the console listing the values of n_original, n_used, n_excluded, the exclusions used, and a printed tibble with the variables above.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.