Learn R Programming

psychmeta (version 2.6.4)

confidence: 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"),
  ...
)

Value

A matrix of confidence intervals of the specified width.

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 quantile SE_esCI = mean_es +/- quantile * SE_es

Examples

Run this code
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")

Run the code above in your browser using DataLab