Takes the configured data, removes any excluded studies and returns subsets of the data to be passed to other functions.
setup_exclude.RdTakes the configured data, removes any excluded studies and returns subsets of the data to be passed to other functions.
Arguments
- configured_data
list. Input dataset created by
setup_configure()orsetup_exclude()- exclusions
character. Vector of study names to exclude.
- async
Whether or not the function is being used asynchronously. Default
FALSE
Value
configured_data containing:
- treatments
dataframe. Treatment names and IDs
- reference_treatment
character. The selected reference treatment
- connected_data
dataframe. A subset of the data containing only connected studies
- covariate
A list containing these items if covariate data exists or else empty:
cross: Crossescircle_open: Open circlesnone: No symbols in which case only the plot of direct evidence is
- freq
list. Processed data for frequentist analyses created by
frequentist()- outcome
character. Whether the data is
binaryorcontinuous- outcome_measure
character. Outcome measure of the dataset.
- effects
character. Whether the models are
fixedorrandomeffects- ranking_option
character. Whether higher values in the data are
goodorbad- seed
numeric. A seed value to be passed to models
Examples
configured_data_path <- system.file("extdata", "configured_data.Rds", package = "metainsight")
configured_data <- readRDS(configured_data_path)
subsetted_data <- setup_exclude(configured_data = configured_data,
exclusions = c("Leo", "Minerva"))