Skip to contents

Observed ratio between sterile and wild male individuals from adult surveys.

Usage

sterile_wild_male_ratio(x, pool)

Arguments

x

Either a sit or a sit_adult_surveys object.

pool

Logical. If TRUE pools sterile and wild counts from all traps and survey dates. Otherwise (default) yields results by trap and survey date.

Value

If pool = TRUE, a number. Otherwise, a data.frame with counts of sterile and wild males by trap and survey period, with the corresponding ratio.

Details

The sit method uses all adult surveys from the study (sit) area. For a sit object x, sterile_wild_male_ratio(x) is thus equivalent to sterile_wild_male_ratio(sit_adult_surveys(x, area = 'sit')).

Examples

sterile_wild_male_ratio(sit_prototype, pool = TRUE)
#> [1] 1.046823