insecticide_check: insecticide_check check if insecticide needs to be changed

Description Usage Arguments Value

View source: R/insecticide_check.r

Description

based on a fixed interval no. generations, or rotate-when-resistant if interval is 0. The actual switching of insecticides is done in insecticide_switch().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
insecticide_check(
  RAF1gen,
  current_insecticide,
  rot_interval,
  threshold,
  mort_or_freq,
  gens_this_insecticide,
  min_rwr_interval,
  exit_rot,
  eff,
  dom_sel,
  rr,
  change_interval,
  diagnostics = FALSE
)

Arguments

RAF1gen

single generation array of resistance allele frequencies

current_insecticide

id number of current insecticide

rot_interval

frequency of rotation (in generations) NB if set to zero mean RwR i.e. rotate when resistant

threshold

trigger for change of insecticide, either resistance frequency or mortality dependent on mort_or_freq, also precludes switch to an insecticide.

mort_or_freq

whether threshold for insecticide change is mortality 'mort' or resistance frequency 'freq'

gens_this_insecticide

num generations this insecticide has been used for

min_rwr_interval

minimum rotate-when-resistant interval to stop short switches, only used when rot_interval==0. set to 0 to have no effect.

exit_rot

whether to exit rotation interval if threshold is reached

eff

effectiveness propn. SS killed by insecticide, for all insecticides or individually

dom_sel

dominance of selection, for all insecticides or individually

rr

resistance restoration, for all insecticides or individually

change_interval

interval that insecticide can be changed on for both rotation and sequence, default 10 gens 1 year

diagnostics

whether to output running info

Value

TRUE/FALSE whether to change


ian-hastings/rotations documentation built on Dec. 14, 2020, 11:42 p.m.