View source: R/direct_adjusting.R
delta_method_confidence_intervals | R Documentation |
Computes different kinds of confidence intervals given the statistics and their variance estimates.
delta_method_confidence_intervals(
statistics,
variances,
conf_lvl = 0.95,
conf_method = "identity"
)
statistics |
statistics for which to calculate confidence intervals |
variances |
variance estimates of |
conf_lvl |
confidence level of confidence intervals in |
conf_method |
see section Confidence interval methods |
data.table
with columns
statistic
: the values you supplied via argument statistics
variance
: the values you supplied via argument variances
ci_lo
: lower bound of confidence interval
ci_hi
: upper bound of confidence interval
Currently supported confidence interval methods and their formulae: - identity: STAT + Z * STD_ERR - log: STAT * exp(Z * STD_ERR/STAT) - log-log: STAT^exp(-Z * (STD_ERR/(abs(log(STAT)) * STAT)))
Where - 'STAT' is the statistic, - 'Z' is the quantile from the standard normal distribution for the lower or upper bound, and - 'STD_ERR“ is the standard error (square root of the variance)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.