Description Usage Arguments Value
View source: R/insecticide_check.r
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().
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
)
|
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 |
TRUE/FALSE whether to change
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.