credibility: Construct a credibility interval

Description Usage Arguments Details Value Examples

View source: R/intervals.R

Description

\loadmathjax

Function to construct a credibility interval around a mean effect size.

Usage

1
credibility(mean, sd, k = NULL, cred_level = 0.8, cred_method = c("t", "norm"))

Arguments

mean

Mean effect size.

sd

Residual/true standard deviation of effect sizes, after accounting for variance from artifacts.

k

Number of studies in the meta-analysis.

cred_level

Credibility level that defines the width of the credibility interval (default = .80).

cred_method

Distribution to be used to compute the width of credibility intervals. Available options are "t" for t distribution or "norm" for normal distribution.

Details

\mjdeqn

CR=mean_es\pm quantile\times SD_esCR = mean_es +/- quantile * SD_es

Value

A matrix of credibility intervals of the specified width.

Examples

1
2
3
credibility(mean = .3, sd = .15, cred_level = .8, cred_method = "norm")
credibility(mean = .3, sd = .15, cred_level = .8, k = 10)
credibility(mean = c(.3, .5), sd = c(.15, .2), cred_level = .8, k = 10)

Example output

-----------------------------------------------------  psychmeta version 2.4.2  --

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. (2019). psychmeta: An R package for
    psychometric meta-analysis. Applied Psychological Measurement, 43(5), 415-416.
    https://doi.org/10.1177/0146621618795933

---------------------------------------------------------------  Version check  --Version check not run.
      CR_LL_80  CR_UL_80
[1,] 0.1077673 0.4922327
       CR_LL_80  CR_UL_80
[1,] 0.09254569 0.5074543
Warning message:
In scalar_arg_warning(arg = cred_method, arg_name = "cred_method") :
  Only one value can be specified for cred_method: First value used
       CR_LL_80  CR_UL_80
[1,] 0.09254569 0.5074543
[2,] 0.22339425 0.7766057
Warning message:
In scalar_arg_warning(arg = cred_method, arg_name = "cred_method") :
  Only one value can be specified for cred_method: First value used

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