confidence: Construct a confidence interval

Description Usage Arguments Details Value Examples

View source: R/intervals.R

Description

\loadmathjax

Function to construct a confidence interval around an effect size or mean effect size.

Usage

1
2
3
4
5
6
7
8
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

\mjdeqn

CI=mean_es\pm quantile\times SE_esCI = mean_es +/- quantile * SE_es

Value

A matrix of confidence intervals of the specified width.

Examples

1
2
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")

Example output

-----------------------------------------------------  psychmeta version 2.3.3  --

Please report any bugs to github.com/psychmeta/psychmeta/issues
or issues@psychmeta.com

We work hard to produce these open-source tools for the R community, 
please cite psychmeta when you use it in your research: 
  Dahlke, J. A., & Wiernik, B. M. (2018). psychmeta: An R package for 
     psychometric meta-analysis. Applied Psychological Measurement. 
     Advance online publication. https://doi.org/10.1177/0146621618795933

Find info about psychmeta on the web at psychmeta.com and twitter.com/psychmetaR

Attaching package: 'psychmeta'

The following object is masked from 'package:stats':

    filter

        CI_LL_95  CI_UL_95
[1,] 0.002404272 0.5975957
[2,] 0.105620755 0.8943792
        CI_LL_95  CI_UL_95
[1,] 0.006005402 0.5939946
[2,] 0.108007203 0.8919928

psychmeta documentation built on June 1, 2021, 9:13 a.m.