View source: R/subgroupAnalysis.R
subgroupAnalysis | R Documentation |
This function allows to simultaneously conduct different subgroup analyses using
runMetaAnalysis
objects.
subgroupAnalysis(.model, ..., .which.run = .model$which.run[1], .round.digits = 2, .nnt.cer = NULL, .tau.common = FALSE, .html = TRUE)
.model |
An object of class |
... |
<dplyr_data_masking>. A number of subgroup variables included in the original dataset
provided to |
.which.run |
The model in |
.round.digits |
|
.nnt.cer |
|
.tau.common |
|
.html |
|
For more details see the help vignette: vignette("metapsyTools")
.
Returns an object of class "subgroupAnalysis"
. This object includes, among other things,
a data.frame
with the name summary
, in which all subgroup analysis results are summarized.
Other objects are the "raw" subgroup analysis model objects returned.
This allows to conduct further operations on some subgroup analysis specifically.
Mathias Harrer mathias.h.harrer@gmail.com, Paula Kuper paula.r.kuper@gmail.com, Pim Cuijpers p.cuijpers@vu.nl
runMetaAnalysis
## Not run: data("inpatients") library(meta) inpatients %>% checkDataFormat() %>% checkConflicts() %>% expandMultiarmTrials() %>% calculateEffectSizes() -> data # Run the meta-analyses runMetaAnalysis(data) -> res # Subgroup analysis subgroupAnalysis(res, Outc_measure, country) -> sg plot(sg, "Outc_measure") plot(sg, "country") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.