View source: R/expandMultiarmTrials.R
expandMultiarmTrials | R Documentation |
This is a function to expand the format of meta-analysis data for its applicability to the calculateEffectSizes
function of the metapsyTools
-package.
expandMultiarmTrials(data, vars.for.id = c("study", "primary", "Outc_measure", "Time", "Time_weeks", "sr_clinician"), study.indicator = "study", multiarm.indicator = "is.multiarm", no.arms.indicator = "no.arms", group.indicator = "condition", condition.specification = "Cond_spec", groups.column.indicator = c("_trt1", "_trt2"), group.names = list("ig" = "ig", "cg" = "cg"), data.format = NULL)
data |
Meta-analysis data stored as a |
vars.for.id |
|
study.indicator |
|
multiarm.indicator |
|
no.arms.indicator |
|
group.indicator |
|
condition.specification |
|
groups.column.indicator |
|
group.names |
|
data.format |
|
This function expands multiarm studies in a meta-analysis data set, thereby ensuring that each comparison (intervention group vs. control group in condition
) is unique for a specific outcome, and thus has two rows. For this purpose, it duplicates the corresponding row of the control group condition if required. A specific study indicator variable is created that enables further use, e.g. in 3-level models.
For more details see the help vignette: vignette("metapsyTools")
.
expandMultiarmTrials
returns the meta-analysis data set as class data.frame
(if results are saved to a variable). The rows of multiarm studies are expanded so that each intervention group has an unambiguously assigned control group. It also generates the following columns:
id
a comparison-specific ID variable.
study.id
a study-specific ID variable.
study
a study-specific variable containing the study name. For multiarm studies, this variable also specifies the active treatment indicated by multiarm.group.indicator
behind the name of the study (e.g. "Hauksson, 2017 -grp"
).
Mathias Harrer mathias.h.harrer@gmail.com, Paula Kuper paula.r.kuper@gmail.com, Pim Cuijpers p.cuijpers@vu.nl
calculateEffectSizes
## Not run: data("inpatients") expandMultiarmTrials(inpatients) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.