Prep Data for Metafor

prep_data(
  data,
  n,
  type = c("average", "weighted", "simple"),
  missing = "remove",
  variable_names = NULL,
  ID = NULL
)

Arguments

data

Raw data input

n

Sample size

type

type of adjustment (olkin siotani)

missing

What to do with missing data

variable_names

An optional character vector specifying variable names of original data. This is mostly used to pass to df_to_corr. A character vector of variable names representing the columns to convert to a pairwise correlation matrix. Variable names take the following format: "columnname_rowname" where the name prior to the underscore is the column name and the name after the underscore is the row name.

ID

A variable name, as a character string, to use as names for the list elements.