rmaModel: rma Model

View source: R/rmaModel.R

rmaModelR Documentation

rma Model

Description

Using metafor rma.uni function to fit and return a meta-analytic univariate fixed- and random/mixed-effects model with or without moderators for the given dataset. See Documentation of metafor package for details.

Usage

rmaModel(yi, vi, measure, d, pred1 = NULL, pred2 = NULL)

Arguments

yi

A string of the variable which holds the vector of length k with the observed effect sizes or outcomes in the selected dataset (d)

vi

A string of the variable which holds the vector of length k with the corresponding sampling variances in the selected dataset (d)

measure

A character string indicating underlying summary measure

d

A string representing the dataset name that should be used for fitting.

pred1

Optional parameter of type String, wich represents the name of the variable which holds the vectors used as input for the metafor mods argument in the selected dataset (d).

pred2

Optional parameter of type String, wich represents the name of the variable which holds the vectors used as input for the metafor mods argument in the selected dataset (d).

Value

returns a fitted rma_uni model

Author(s)

Robert Studtrucker


leibniz-psychology/PsychOpen-CAMA-R-package documentation built on April 17, 2025, 5:27 p.m.