Wrapper for pops_model_cpp. A dynamic species distribution model for pest or pathogen spread in forest or agricultural ecosystems. The model is process based meaning that it uses understanding of the effect of weather and other environmental factors on reproduction and survival of the pest/pathogen in order to forecast spread of the pest/pathogen into the future.
pops_model(
random_seed,
multiple_random_seeds,
random_seeds,
use_lethal_temperature,
lethal_temperature,
lethal_temperature_month,
use_survival_rates,
survival_rate_month,
survival_rate_day,
host_pools,
total_populations,
competency_table,
pest_host_table,
mortality_on,
quarantine_areas,
quarantine_directions,
treatment_maps,
treatment_dates,
pesticide_duration,
use_movements,
movements,
movements_dates,
weather,
temperature,
survival_rates,
weather_coefficient,
weather_coefficient_sd,
res,
rows_cols,
time_step,
reproductive_rate,
spatial_indices,
season_month_start_end,
soil_reservoirs,
start_date = "2018-01-01",
end_date = "2018-12-31",
treatment_method = "ratio",
natural_kernel_type = "cauchy",
anthropogenic_kernel_type = "cauchy",
use_anthropogenic_kernel = FALSE,
percent_natural_dispersal = 0,
natural_distance_scale = 21,
anthropogenic_distance_scale = 0,
natural_dir = "NONE",
natural_kappa = 0,
anthropogenic_dir = "NONE",
anthropogenic_kappa = 0,
output_frequency = "year",
output_frequency_n = 1,
quarantine_frequency = "year",
quarantine_frequency_n = 1,
use_quarantine = FALSE,
spreadrate_frequency = "year",
spreadrate_frequency_n = 1,
mortality_frequency = "year",
mortality_frequency_n = 1,
use_spreadrates = FALSE,
model_type_ = "SI",
latency_period = 0,
generate_stochasticity = TRUE,
establishment_stochasticity = TRUE,
movement_stochasticity = TRUE,
dispersal_stochasticity = TRUE,
establishment_probability = 0,
dispersal_percentage = 0.99,
use_overpopulation_movements = FALSE,
overpopulation_percentage = 0,
leaving_percentage = 0,
leaving_scale_coefficient = 1,
bbox = NULL,
network_min_distance = 0,
network_max_distance = 0,
network_filename = "",
network_movement = "walk",
weather_size = 0,
weather_type = "deterministic",
dispersers_to_soils_percentage = 0,
use_soils = FALSE
)
Sets the random seed for the simulation used for reproducibility
Boolean to indicate if the model should use multiple random seeds (allows for performing uncertainty partitioning) or a single random seed (backwards compatibility option). Default is FALSE.
vector of random seeds in the order of "disperser_generation", "natural_dispersal", "anthropogenic_dispersal", "establishment", "weather", "lethal_temperature", "movement", "overpopulation", "survival_rate", "soil"
A boolean to answer the question: does your pest or pathogen have a temperature at which it cannot survive? (TRUE or FALSE)
The temperature in degrees C at which lethal temperature related mortality occurs for your pest or pathogen (-50 to 60)
The month in which lethal temperature related mortality occurs for your pest or pathogen integer value between 1 and 12
Boolean to indicate if the model will use survival rates to limit the survival or emergence of overwintering generations.
What month do over wintering generations emerge. We suggest using the month before for this parameter as it is when the survival rates raster will be applied.
What day should the survival rates be applied
list of host_pool lists with each host_pool list containing matrices of infected, susceptible, exposed, total_hosts, total_exposed, resistant, mortality, and mortality_tracker for that host.
matrix of total populations
A csv with the hosts as the first n columns (n being the number of hosts) and the last column being the competency value. Each row is a set of Boolean for host presence and the competency value (between 0 and 1) for that combination of hosts in a cell. #'
The file path to a csv that has these columns in this order: host, susceptibility_mean, susceptibility_sd, mortality_rate, mortality_rate_mean, and mortality_time_lag as columns with each row being the species. Host species must be in the same order in the host_file_list, infected_file_list, pest_host_table rows, and competency_table columns. The host column is character string of the species name, and is only used for metadata and labeling output files. Susceptibility and mortality_rate values must be between 0 and 1.
Boolean to indicate if mortality is used
areas that are set as quarantined for computing escape from quarantine statistics.
String with comma separated directions to include in the quarantine direction analysis, e.g., 'N,E'. By default all directions (N, S, E, W) are considered
list of matrices where treatment or management has occurred in a given year
Dates in which to apply treatment list with format ('YYYY_MM_DD') (needs to be the same length as treatment_file and pesticide_duration)
How long does the pesticide (herbicide, vaccine, etc..) last before the host is susceptible again. If value is 0 treatment is a culling (i.e. host removal) not a pesticide treatment. (needs to be the same length as treatment_dates and treatment_file)
this is a boolean to turn on use of the movement module.
a matrix with columns lon_from, lat_from, lon_to, lat_to, number of animals, and date.
this is a list of dates passed as strings in the format 'YYYY-MM-DD'
Boolean that is true if weather is used
vector of matrices of temperature values used to check against lethal temperature
vector of matrices of survival rates used to determine percentage of overwinter population that emerges
vector of matrices of weather coefficients
vector of matrices of weather coefficient standard deviations.
vector of east/west resolution and north/south resolution
vector of number of rows and columns in the raster files
How often should spread occur options: ('day', 'week', 'month').
number of spores or pest units produced by a single host under optimal weather conditions
list of all spatial locations with suitable hosts
vector of months when spread starts and stops
list of matrices with soil pests created from soil_pest_file.
Date to start the simulation with format ('YYYY_MM_DD')
Date to end the simulation with format ('YYYY_MM_DD')
What method to use when applying treatment one of ("ratio" or "all infected"). ratio removes a portion of all infected and susceptibles, all infected removes all infected a portion of susceptibles.
What type of dispersal kernel should be used for natural dispersal. Current dispersal kernel options are ('Cauchy', 'exponential', 'uniform', 'deterministic neighbor','power law', 'hyperbolic secant', 'gamma', 'weibull', 'logistic')
What type of dispersal kernel should be used for anthropogenic dispersal. Current dispersal kernel options are ('cauchy', 'exponential', 'uniform', 'deterministic neighbor','power law', 'hyperbolic secant', 'gamma', 'weibull', 'logistic', 'network')
A boolean that turns on the use of the anthropogenic or long distance dispersal portion of the 2 scale dispersal kernel function
what percentage of dispersal is natural range versus anthropogenic range value between 0 and 1
distance scale parameter for natural range dispersal kernel numeric value > 0
distance scale parameter for anthropogenic range dispersal kernel numeric value > 0
Sets the predominate direction of natural dispersal usually due to wind values ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')
sets the strength of the natural direction in the von-mises distribution numeric value between 0.01 and 12
Sets the predominate direction of anthropogenic dispersal usually due to human movement typically over long distances (e.g. nursery trade, movement of firewood, etc..) ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')
sets the strength of the anthropogenic direction in the von-mises distribution numeric value between 0.01 and 12
Sets when outputs occur either ('year', 'month', week', 'day', 'time step', or 'every_n_steps')
Sets number of units from output_frequency in which to export model results if mortality_frequency is 'every_n_steps'. Must be an integer >= 1.
sets how often the quarantine statistics are calculated either ('year', 'month', 'week', 'day' or 'time step') (default is year)
sets number units ('year', 'month', 'week', 'day' or 'time step') in which to calculate and export quarantine statistics.
Boolean to indicate whether or not there is a quarantine area if TRUE must pass in a raster file indicating the quarantine areas (default = FALSE)
sets how often the spread rate statistics are calculated either ('year', 'month', 'week', 'day' or 'time step') (default is year)
sets number units ('year', 'month', 'week', 'day' or 'time step') in which to calculate and export spread rate statistics.
Sets the frequency of mortality calculations occur either ('year', 'month', week', 'day', 'time step', or 'every_n_steps')
Sets number of units from mortality_frequency in which to run the mortality calculation if mortality_frequency is 'every_n_steps'. Must be an integer >= 1.
Boolean to indicate whether or not to calculate spread rates
What type of model most represents your system. Options are "SEI" (Susceptible - Exposed - Infected/Infested) or "SI" (Susceptible - Infected/Infested). Default value is "SI".
How many times steps does it take to for exposed populations become infected/infested. This is an integer value and must be greater than 0 if model type is SEI.
Boolean to indicate whether to use stochasticity in reproductive functions default is TRUE
Boolean to indicate whether to use stochasticity in establishment functions default is TRUE
Boolean to indicate whether to use stochasticity in movement functions default is TRUE
Boolean to indicate whether to use a stochasticity in the dispersal kernel default is TRUE
Threshold to determine establishment if establishment_stochasticity is FALSE (range 0 to 1, default = 0.5)
Percentage of dispersal used to calculate the bounding box for deterministic dispersal
Boolean to indicate whether to use the overpopulation pest movement module (driven by the natural kernel with its scale parameter modified by a coefficient)
Percentage of occupied hosts when the cell is considered to be overpopulated
Percentage of pests leaving an overpopulated cell
Coefficient to multiply scale parameter of the natural kernel (if applicable)
bounding box for network kernel
minimum time a propagule rides on the network. Used if anthropogenic_kernel_type = 'network'.
maximum time a propagule rides on the network. Used if anthropogenic_kernel_type = 'network'.
The entire file path for the network file. Used if anthropogenic_kernel_type = 'network'.
What movement type do you want to use in the network kernel either "walk", "jump", or "teleport". "walk" allows dispersing units to leave the network at any cell along the edge. "jump" automatically moves to the nearest node when moving through the network. "teleport" moves from node to node most likely used for airport and seaport networks.
the number of matrices in a list or layers in a raster object
string indicating how the weather data is passed in either as a mean and standard deviation to represent uncertainty ("probabilistic") or as a time series ("deterministic")
range from 0 to 1 representing the percentage of dispersers that fall to the soil and survive.
Boolean to indicate if pests establish in the soil and spread out from there. Typically used for soil borne pathogens.
list of vector matrices of infected and susceptible hosts per simulated year and associated statistics (e.g. spread rate)