Applies 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).

filter_bz_studies(datareq, varname, nice_varname)

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.

Value

A tibble filtered according to the variable-specific methodology.

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)").