Skip to contents

Fit univariate meta-analysis with metafor

Usage

fit_metafor_uni(Zr, VZr, data, slab)

Arguments

Zr

Standardized beta-estimate

VZr

Standardised standard error of the beta estimate

data

Dataframe containing estimates and variances

slab

Vector of case identifiers

Value

A fitted model of class rma

Examples

# library(tidyverse);library(targets);library(metafor)
# source("R/functions.R")
# tar_read(round_2_survey_meta_analysis) %>%
#   filter(dataset == "eucalyptus") %>%
#   filter(!is.na(Zr),
#          !is.na(VZr),
#          !is.infinite(Zr),
#          !is.infinite(VZr)) %>%
# fit_metafor_uni(Zr = .$Zr,
#                      VZr = .$VZr,
#                      data = .,
#                      slab = .$study_id)