mcmc_rma: MCMC Sampling for 'rma' Objects

Description Usage Arguments Value Note Examples

View source: R/mcmc_rma.R

Description

The package metafor is perhaps the gold-standard for meta-analysis in R. This function allows for sampling from the posterior distribution of a model originally estimated with metafor.

Usage

1
mcmc_rma(object, data, ...)

Arguments

object

an object of class rma.

data

data frame containing the variables in the model.

...

Currently ignored

Value

An object of class blsmeta (see blsmeta)

Note

This function works for any kind of model fitted with rma.

Examples

1
2
3
4
5
6
7
8
9
library(metafor)
library(psymetadata)

fit <- mcmc_rma(rma(yi = yi, vi = vi, 
                method = "FE",
                data = gnambs2020), 
                data = gnambs2020)

fit

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