credint.blsmeta: Credible Intervals for Heterogeneity Statistics

Description Usage Arguments Value Note Examples

View source: R/heterogeneity_stats.R

Description

Compute credible intervals for between-study variance, between-study standard deviation, I2, and H2. This function mimics that of metafor, but for credible and not confidence intervals, as well as for two and three-level models.

Usage

1
2
## S3 method for class 'blsmeta'
credint(object, cred = 0.95, digits = 3, ...)

Arguments

object

An object of class blsmeta.

cred

numeric. credible interval (defaults to 0.95).

digits

numeric. The desired number of digits for the summarized estimates (defaults to 3).

...

Currently ignored.

Value

An object of class confint, including a data.frame with the estimates.

Note

There cannot be a scale model. To get I2, etc., when there is a scale model, use I2.

Examples

1
2
3
4
5
6
7
library(psymetadata)

fit_re <- blsmeta(yi = yi, vi = vi, 
                  es_id = es_id,
                  data = gnambs2020)

credint(fit_re)

donaldRwilliams/blsmeta documentation built on Dec. 20, 2021, 12:12 a.m.