Filter Studies Based on Barnabas Zogo Criteria
filter_bz_studies.RdApplies variable-specific filtering rules following methodological criteria defined by Barnabas Zogo. These filters help retain only studies with appropriate sampling methods for analyzing specific entomological indicators such as endophagy, endophily, or human blood index (HBI).
Arguments
- datareq
A `data.frame` containing the dataset to be filtered.
- varname
A character string indicating the variable of interest (e.g., `"endophagy"`, `"endophily"`, `"outdoor_HBI"`).
- nice_varname
A descriptive string (e.g., `"Endophagy"`, `"Endophily"`, `"HBI"`) that determines the filter rules applied.
Details
Filters applied by nice_varname:
Endophagy: Retains rows where:
`indoor_biting_sampling == "MBI"`
`outdoor_biting_sampling == "MBO"`
`HLC_same == TRUE`
Endophily: Retains rows where:
`indoor_resting_sampling == "HRI"`
`outdoor_resting_sampling == "WinExit"`
`WinExit_in_HRI_houses == "t"`
HBI: Removes rows where `host_unit == "AI"`. If `varname == "outdoor_HBI"`, further restricts `host_sampling` to:
c("RO", "RO (shelter)", "RO (pit)").