wos_advantage: wos_advantage calculate selective advantage through 'window...

Description Usage Arguments Value Examples

View source: R/wos_advantage.r

Description

Similar to wos_sim() which simulates time-to-resistance. Requires either a dataframe with columns for genotype, x (e.g. time) and y (e.g.mortality) or vectors of x, and yrr,ysr,yss.

Usage

1
2
3
4
wos_advantage(dfmortbygen = NULL, x = "concentration",
  y = "mortality", concs = c(1:5), mort_rr = c(0, 0, 0, 0.5, 1),
  mort_sr = c(0, 0, 0.5, 1, 1), mort_ss = c(0, 0.5, 1, 1, 1),
  exposure = 0.5, startfreq = 0.001)

Arguments

dfmortbygen

dataframe of mortality by genotype, an alternative way of initialising function, needs genotype column

x

column name of x in dfmortbygen

y

column name of y in dfmortbygen

concs

concentration or time

mort_rr

rr mortalities

mort_sr

sr mortalities

mort_ss

ss mortalities

exposure

proportion of popn exposed to insecticide

startfreq

starting frequency to use in the simulations

Value

dataframe of simulation outputs

Examples

1

AndySouth/wos documentation built on Nov. 15, 2019, 10:05 a.m.