confidence {psychmeta} | R Documentation |
Construct a confidence interval
Description
Function to construct a confidence interval around an effect size or mean effect size.
Usage
confidence(
mean,
se = NULL,
df = NULL,
conf_level = 0.95,
conf_method = c("t", "norm"),
...
)
Arguments
mean |
Mean effect size (if used in a meta-analysis) or observed effect size (if used on individual statistics). |
se |
Standard error of the statistic. |
df |
Degrees of freedom of the statistic (necessary if using the t distribution). |
conf_level |
Confidence level that defines the width of the confidence interval (default = .95). |
conf_method |
Distribution to be used to compute the width of confidence intervals. Available options are "t" for t distribution or "norm" for normal distribution. |
... |
Additional arguments |
Details
CI=mean_{es}\pm quantile\times SE_{es}
Value
A matrix of confidence intervals of the specified width.
Examples
confidence(mean = c(.3, .5), se = c(.15, .2), df = c(100, 200), conf_level = .95, conf_method = "t")
confidence(mean = c(.3, .5), se = c(.15, .2), conf_level = .95, conf_method = "norm")
[Package psychmeta version 2.7.0 Index]