meta.with: Meta-analysis with Grouping Variable

View source: R/dthelper-computation-functions.R

meta.withR Documentation

Meta-analysis with Grouping Variable

Description

Meta-analysis with Grouping Variable

Usage

meta.with(
  df,
  estimate = "estimate",
  se = "se",
  group = NULL,
  random = T,
  na.rm = T
)

Arguments

df

data.frame object

estimate

Regression estimates

se

Regression standard errors

group

Grouping variable

random

If set to TRUE, random-effects meta-analysis will be run. If set to FALSE, fixed-effects meta-analysis will be run

na.rm

If set to TRUE, NAs will be ignored in computation of weights

Value

data.frame object

Examples

df <- data.frame(
      estimate = c(1,2,3,2,1,4),
      se = c(.1,.5,.3,.8,1,.7),
      group = c("a","a","a","b","b","b")
      )
meta.with(df, group = "group")


dennisteowh/dthelper documentation built on March 19, 2022, 11:42 a.m.