metaconfoundr-open-paren-close-paren: Prepare a meta-analysis data set for metaconfoundr

metaconfoundr()R Documentation

Prepare a meta-analysis data set for metaconfoundr

Description

metaconfoundr() standardizes data frames with information on how well a set of studies control for a set of variables. In this approach, a set of domain experts agree on the variables that are required to properly control for confounding for a scientific question. Then, for a given confounder, the studies are described as being adequately controlled, inadequately controlled, or controlled with some concerns. metaconfoundr() is intended to standardize data for use in mc_heatmap() and mc_trafficlight(). See the vignette on data preparation for more information on how to set up your evaluation.

Usage

metaconfoundr(.df, data_format = mc_detect_layout())

Arguments

.df

A data frame. See the vignette on data preparation for more details.

data_format

The format of the data. Detected automatically by default, but explicit options include mc_longer() and mc_wider()

Value

a tibble

Examples


metaconfoundr(ipi)

metaconfoundr(ipi_wide)

ipi_wide2 <- ipi_wide %>%
  dplyr::rename(scope = construct)

metaconfoundr(ipi_wide2, mc_wider(construct = "scope"))



metaconfoundr documentation built on Jan. 18, 2023, 1:10 a.m.