View source: R/filterPriorityRule.R
filterPriorityRule | R Documentation |
This function filters rows of a dataset based on a priority rule for specific variables defined by the user.
filterPriorityRule(.data, ..., .study.indicator = "study")
.data |
A |
... |
<dplyr_data_masking>. A number of prioritized filtering rules for variables.
Should follow the form |
.study.indicator |
|
For more details see the help vignette: vignette("metapsyTools")
.
filterPriorityRule
returns the filtered data set as class data.frame
.
The filtered data set should then be ready for meta-analytic pooling, for example using metagen.
Further filters can be applied using filterPoolingData
.
Mathias Harrer mathias.h.harrer@gmail.com, Paula Kuper paula.r.kuper@gmail.com, Pim Cuijpers p.cuijpers@vu.nl
filterPoolingData
## Not run: # Load data and calculate effect size data("psyCtrSubset") psyCtrSubset %>% checkDataFormat() %>% checkConflicts() %>% expandMultiarmTrials() %>% calculateEffectSizes() -> data # Filterusing four priority rules filterPriorityRule(data, Cond_spec_trt1 = c("cbt", "pst"), Cond_spec_trt2 = c("cau", "wl", "cbt"), Outc_measure = c("cesd", "phq-9", "scl", "hdrs"), Time = c("post", "fu")) -> res ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.