xgx_conf_int
returns a dataframe with mean +/- confidence intervalsR/xgx_stat_ci.R
xgx_conf_int.Rd
xgx_conf_int
returns a dataframe with mean +/- confidence intervals
xgx_conf_int(y, conf_level = 0.95, distribution = "normal", ci_method = NULL)
data to compute confidence interval of
The percentile for the confidence interval (should fall between 0 and 1). The default is 0.95, which corresponds to a 95 percent confidence interval.
The distribution which the data follow, used for
calculating confidence intervals. The options are "normal", "lognormal",
and "binomial". The "normal" option will use the Student t Distribution
to calculate confidence intervals, the "lognormal" option will transform
data to the log space first. The "binomial" option will use the
binom.confint
function to calculate the
confidence
intervals. Note: binomial data must be numeric and contain only 1's and 0's.
The "multinomial" or "ordinal" options will use DescTools::MultinomCI
Method to pass to binom.confint or MultinomCI. Defaults are "exact" and "goodman", respectively.
data.frame