credibility: Construct a credibility interval

View source: R/intervals.R

credibilityR Documentation

Construct a credibility interval

Description

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

Usage

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

CR=mean_{es}\pm quantile\times SD_{es}

Value

A matrix of credibility intervals of the specified width.

Examples

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)

psychmeta documentation built on June 22, 2024, 6:52 p.m.