diff --git a/404.html b/404.html index ee764f07..abb552f6 100644 --- a/404.html +++ b/404.html @@ -38,7 +38,7 @@ Reference
@@ -48,7 +48,7 @@The format is based on Keep a Changelog, and this project adheres to Semantic Versioning with an additional rule that interfaces to the core library follow the same numbering although they are in separate repositories, so increasing version number there increases version here although there is no specific tag or release for that in this repository.
Final step as an option for output frequency in all functions (@petrasovaa, #163).
Added ability to use mean and sd for temp and precip coefficient. Uses 3 new parameters: weather_type, temperature_coefficient_sd_file, and precipitation_coefficient_sd_file. This is added to help understand uncertainty in model predictions due to weather drivers (@ChrisJones687, #168).
Added the ability to use different seeds for all processes within pops-core. Adds 2 new parameters: multiple_random_seeds (boolean for using this functionality) and random_seeds (set to NULL to allow internal model selection of kernels or pass a CSV with the number of rows being the number of model runs and columns being the kernels in order (@ChrisJones687, #168).
calibrate
can now use the Mathews Correlation Coefficient as the summary statistic of to keep or reject parameter sets (@ChrisJones687, #145).
validate
, calibrate
, pops_multirun
, and pops
now take use_survival_rates, survival_rate_month, survival_rate_day, and survival_rates_file (@ChrisJones687, #147).
validate
, calibrate
, pops_multirun
, and pops
now take network_movement as a parameter. This parameter controls how dispersal occurs along the network (@ChrisJones687, #147).
validate
, calibrate
, pops_multirun
, auto_manage
and pops
no longer take network_min_distance and network_max_distance as these parameters are now passed in through the parameter_means and parameter_cov_matrix parameters and are calibrated as part of the calibration if network kernel is selected (@ChrisJones687, #140).
calibrate
now calibrates the network_min_distance and network_max_distance parameters during calibration and they are now part of the parameter_means and parameter_cov_matrix that are exported from the calibration (@ChrisJones687, #140).
calibrate
has more flexible success metric options removes use_distance, use_rmse, and use_mcc parameters and replaces it with the more flexible success_metrics parameter. Users can now select multiple combinations of different success metrics for the calibration (@ChrisJones687, #150).
validate
, calibrate
, pops_multirun
, and pops
now propogate uncertainty from host and initial conditions. This adds the parameters use_initial_condition_uncertainty and use_host_uncertainty. If use_initial_condition_uncertainty is TRUE the infected_file and/or exposed_file need to have 2 layers a mean and standard deviation. If use_host_uncertainty is is TRUE the host_file needs to have 2 layers a mean and standard deviation. For each model run a host and/or initial conditions are drawn from the mean and sd layers so that each run has a unique host and/or initial conditions this will allow for both propogation of uncertainty from these sources but also partitioning (@ChrisJones687, #151).
quantity_allocation_disagreement
now takes in the use_distance parameter which is FALSE by default. This allows the model to commute the minimum total distance between observed and simulated infestations (@ChrisJones687, #130).
validate
, calibrate
, pops_multirun
, auto_manage
and pops
now take in network_min_distance, network_max_distance, and network_filename parameters these are used when the anthropogenic_kernel_type = “network”. This allows directed spread along a network such as a railroad (@ChrisJones687 and @wenzeslaus, #131)
validate
now takes the variable point_file and uses it to calculate statistics based on the point_file in addition to the raster file also calculates new measures of model performance accuracy, precision, recall, and specificity (@ChrisJones687, #124).
calibrate
no longer uses success_metrics and checks parameters as these are both handled internally by auto updating if the values are too far of in the first generation. This makes for a simpler and faster user experience (@ChrisJones687, #130).
validate
no longer uses success_metrics parameter but now has the added parameters use_rmse and use_distance that are used in quantity_allocation_disagreement
. This allows for a more intuitive user interface (@ChrisJones687, #130).
New dispersal kernels added: Uniform, Power-law, Deterministic neighbor, Hyperbolic-Secant, Gamma, Weibull, Normal, and Logistic (@ChrisJones687, #73).
Exposed and Infected populations can both be present at the start of a simulation (@ChrisJones687, #92).
Internal functions for data handling have switched from the raster package to the terra package (@ChrisJones687, #79).
@@ -144,34 +159,34 @@Mask parameter works as intended in validate function after terra update (@ChrisJones687, #104).
Improved pops_model documentation updating (@ChrisJones687, #94).
Output_frequency
can now be every_n_steps
(@ChrisJones, #118).
Version 1.0.0 of the PoPS Core C++ library and its interfaces: rpops R package and r.pops.spread GRASS GIS module. The release of rpops includes:
Susceptible-infected (SI
) and susceptible-exposed-infected (SEI
) host phases (model_type
, latency_period
).
Host mortality tracking (mortality_rate
, mortality
).
library(PoPS)
+#> The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
+#> which was just loaded, will retire in October 2023.
+#> Please refer to R-spatial evolution reports for details, especially
+#> https://r-spatial.org/r/2023/05/15/evolution4.html.
+#> It may be desirable to make the sf package available;
+#> package maintainers should consider adding sf to Suggests:.
+#> The sp package is now running under evolution status 2
+#> (status 2 uses the sf package in place of rgdal)
Jones C, Petras V, Petrasova A (2022). +
Jones C, Petras V, Petrasova A (2023). PoPS: Pest or Pathogen Spread Model. -R package version 2.0.1, http://www.github.com/ncsu-landscape-dynamics/rpops. +R package version 2.1.0, http://www.github.com/ncsu-landscape-dynamics/rpops.
@Manual{, title = {PoPS: Pest or Pathogen Spread Model}, author = {Chris Jones and Vaclav Petras and Anna Petrasova}, - year = {2022}, - note = {R package version 2.0.1}, + year = {2023}, + note = {R package version 2.1.0}, url = {http://www.github.com/ncsu-landscape-dynamics/rpops}, }@@ -102,7 +102,7 @@
This is the R package for simulating spread of pests and pathogens. The package is an R package with multiple functions built around the PoPS (Pest or Pathogen Spread) model implemented in the C++ library maintained in the PoPS Core Repository.
+This is an R package for simulating the spread of pests and pathogens. The package is an R package with multiple functions built around the PoPS (Pest or Pathogen Spread) model implemented in the C++ library maintained in the PoPS Core Repository.
PoPs is a stochastic spread model of pests and pathogens in forest and agricultural landscapes to learn more visit popsmodel.org. The R package provides an easy way for researchers to calibrate, validate, and test what if scenarios of treatment interventions. The model is also available in GRASS GIS you can install and use r.pops.spread to run the model in GRASS GIS.
If you want to install a specific version just change the version number.
-install.packages("remotes")
-remotes::install_github("ncsu-landscape-dynamics/rpops", ref = "v2.0.0")
-library(PoPS)
install.packages("remotes")
+remotes::install_github("ncsu-landscape-dynamics/rpops", ref = "v2.0.0")
+library(PoPS)
-install.packages("remotes")
-remotes::install_github("ncsu-landscape-dynamics/rpops")
-library(PoPS)
install.packages("remotes")
+remotes::install_github("ncsu-landscape-dynamics/rpops")
+library(PoPS)
(alphabetical order)
calibrate(
- infected_years_file,
- number_of_observations = 1,
- prior_number_of_observations = 0,
- prior_means = c(0, 0, 0, 0, 0, 0),
- prior_cov_matrix = matrix(0, 6, 6),
- params_to_estimate = c(T, T, T, T, F, F),
- number_of_generations = 7,
- generation_size = 1000,
- infected_file,
- host_file,
- total_populations_file,
- temp = FALSE,
- temperature_coefficient_file = "",
- precip = FALSE,
- precipitation_coefficient_file = "",
- model_type = "SI",
- latency_period = 0,
- time_step = "month",
- season_month_start = 1,
- season_month_end = 12,
- start_date = "2008-01-01",
- end_date = "2008-12-31",
- use_survival_rates = FALSE,
- survival_rate_month = 3,
- survival_rate_day = 15,
- survival_rates_file = "",
- use_lethal_temperature = FALSE,
- temperature_file = "",
- lethal_temperature = -12.87,
- lethal_temperature_month = 1,
- mortality_on = FALSE,
- mortality_rate = 0,
- mortality_time_lag = 0,
- mortality_frequency = "year",
- mortality_frequency_n = 1,
- management = FALSE,
- treatment_dates = c(""),
- treatments_file = "",
- treatment_method = "ratio",
- natural_kernel_type = "cauchy",
- anthropogenic_kernel_type = "cauchy",
- natural_dir = "NONE",
- natural_kappa = 0,
- anthropogenic_dir = "NONE",
- anthropogenic_kappa = 0,
- pesticide_duration = c(0),
- pesticide_efficacy = 1,
- mask = NULL,
- output_frequency = "year",
- output_frequency_n = 1,
- movements_file = "",
- use_movements = FALSE,
- start_exposed = FALSE,
- generate_stochasticity = TRUE,
- establishment_stochasticity = TRUE,
- movement_stochasticity = TRUE,
- dispersal_stochasticity = TRUE,
- establishment_probability = 0.5,
- dispersal_percentage = 0.99,
- quarantine_areas_file = "",
- use_quarantine = FALSE,
- use_spreadrates = FALSE,
- use_overpopulation_movements = FALSE,
- overpopulation_percentage = 0,
- leaving_percentage = 0,
- leaving_scale_coefficient = 1,
- calibration_method = "ABC",
- number_of_iterations = 1e+05,
- exposed_file = "",
- verbose = TRUE,
- write_outputs = "None",
- output_folder_path = "",
- network_filename = "",
- network_movement = "walk",
- success_metric = "mcc",
- use_initial_condition_uncertainty = FALSE,
- use_host_uncertainty = FALSE
-)
calibrate(
+ infected_years_file,
+ number_of_observations = 1,
+ prior_number_of_observations = 0,
+ prior_means = c(0, 0, 0, 0, 0, 0),
+ prior_cov_matrix = matrix(0, 6, 6),
+ params_to_estimate = c(TRUE, TRUE, TRUE, TRUE, FALSE, FALSE),
+ number_of_generations = 7,
+ generation_size = 1000,
+ infected_file,
+ host_file,
+ total_populations_file,
+ temp = FALSE,
+ temperature_coefficient_file = "",
+ precip = FALSE,
+ precipitation_coefficient_file = "",
+ model_type = "SI",
+ latency_period = 0,
+ time_step = "month",
+ season_month_start = 1,
+ season_month_end = 12,
+ start_date = "2008-01-01",
+ end_date = "2008-12-31",
+ use_survival_rates = FALSE,
+ survival_rate_month = 3,
+ survival_rate_day = 15,
+ survival_rates_file = "",
+ use_lethal_temperature = FALSE,
+ temperature_file = "",
+ lethal_temperature = -12.87,
+ lethal_temperature_month = 1,
+ mortality_on = FALSE,
+ mortality_rate = 0,
+ mortality_time_lag = 0,
+ mortality_frequency = "year",
+ mortality_frequency_n = 1,
+ management = FALSE,
+ treatment_dates = c(""),
+ treatments_file = "",
+ treatment_method = "ratio",
+ natural_kernel_type = "cauchy",
+ anthropogenic_kernel_type = "cauchy",
+ natural_dir = "NONE",
+ natural_kappa = 0,
+ anthropogenic_dir = "NONE",
+ anthropogenic_kappa = 0,
+ pesticide_duration = c(0),
+ pesticide_efficacy = 1,
+ mask = NULL,
+ output_frequency = "year",
+ output_frequency_n = 1,
+ movements_file = "",
+ use_movements = FALSE,
+ start_exposed = FALSE,
+ generate_stochasticity = TRUE,
+ establishment_stochasticity = TRUE,
+ movement_stochasticity = TRUE,
+ dispersal_stochasticity = TRUE,
+ establishment_probability = 0.5,
+ dispersal_percentage = 0.99,
+ quarantine_areas_file = "",
+ use_quarantine = FALSE,
+ use_spreadrates = FALSE,
+ use_overpopulation_movements = FALSE,
+ overpopulation_percentage = 0,
+ leaving_percentage = 0,
+ leaving_scale_coefficient = 1,
+ calibration_method = "ABC",
+ number_of_iterations = 1e+05,
+ exposed_file = "",
+ verbose = TRUE,
+ write_outputs = "None",
+ output_folder_path = "",
+ network_filename = "",
+ network_movement = "walk",
+ success_metric = "mcc",
+ use_initial_condition_uncertainty = FALSE,
+ use_host_uncertainty = FALSE,
+ weather_type = "deterministic",
+ temperature_coefficient_sd_file = "",
+ precipitation_coefficient_sd_file = "",
+ dispersers_to_soils_percentage = 0,
+ quarantine_directions = "",
+ multiple_random_seeds = FALSE,
+ random_seeds = NULL,
+ use_soils = FALSE,
+ soil_starting_pest_file = ""
+)
the number of observations used for this calibration. Useful if using previous calibration. This is used to @@ -185,6 +196,8 @@
the number of total observations from previous calibrations used to weight the posterior distributions (if this is @@ -193,12 +206,16 @@
A vector of the means of your parameters you are estimating in order from (reproductive_rate, natural_dispersal_distance, percent_natural_dispersal, anthropogenic_dispersal_distance, natural kappa, and anthropogenic kappa). This is used when updating a parameter set from a previous calibration using the iterative framework.
A covariance matrix from the previous years posterior parameter estimation ordered from (reproductive_rate, @@ -206,11 +223,15 @@
A list of booleans specifying which parameters to estimate ordered from (reproductive_rate, natural_dispersal_distance, percent_natural_dispersal, anthropogenic_dispersal_distance, natural kappa, and anthropogenic kappa)
the number of generations to use to decrease the uncertainty in the parameter estimation (too many and it will take a @@ -218,16 +239,22 @@
how many accepted parameter sets should occur in each generation. For example if generation size is 1,000 then the simulation runs until 1,000 model runs are less than the threshold value. We recommend running at least 1,000 but the greater this number the more accurate the model parameters selected will be.
Raster file with initial infections. Units for infections are based on data availability and the way the units used for your host file is created (e.g. percent area, # of hosts per cell, etc.).
path to raster files with number of hosts and standard deviation on those estimates can be based in 3 formats (a single file with @@ -236,6 +263,8 @@
path to raster file with number of total populations of all hosts and non-hosts. This depends on how your host data is @@ -243,9 +272,13 @@
boolean that allows the use of temperature coefficients to modify spread (TRUE or FALSE)
path to raster file with temperature coefficient data for the timestep and and time period specified (e.g. if timestep @@ -254,9 +287,13 @@
boolean that allows the use of precipitation coefficients to modify spread (TRUE or FALSE)
Raster file with precipitation coefficient data for the timestep and time period specified (e.g. if timestep @@ -265,207 +302,326 @@
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.
how often should spread occur options: ('day', 'week', -'month').
how often should spread occur options: ('day', 'week', 'month').
when does spread first start occurring in the year for your pest or pathogen (integer value between 1 and 12)
when does spread end during the year for your pest or pathogen (integer value between 1 and 12)
date to start the simulation with format ('YYYY_MM_DD')
date to end the simulation with format ('YYYY_MM_DD')
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
Raster file with survival rates from 0 to 1 representing the percentage of emergence for a cell.
a boolean to answer the question: does your pest or pathogen have a temperature at which it cannot survive? (TRUE or FALSE)
path to raster file with temperature data for minimum temperature
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 turn host mortality on and off (TRUE or FALSE)
rate at which mortality occurs value between 0 and 1
time lag from infection until mortality can occur in time steps integer >= 1
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 allow use of management (TRUE or FALSE)
dates in which to apply treatment list with format ('YYYY_MM_DD') (needs to be the same length as treatment_file and pesticide_duration)
path to raster files with treatment data by dates. Needs to be a list of files the same length as treatment_dates and pesticide_duration.
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')
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
how long does the pestcide (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)
how effictive is the pesticide at preventing the disease or killing the pest (if this is 0.70 then when applied it successfully treats 70 percent of the plants or animals)
Raster file used to provide a mask to remove 0's that are not true negatives from comparisons (e.g. mask out lakes and oceans from statics if modeling terrestrial species). A numerical value represents the area you want to calculate statistics on and an NA value represents the area to remove from the statistics.
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.
this is a csv file with columns lon_from, lat_from, lon_to, lat_to, number of animals, and date.
this is a boolean to turn on use of the movement module.
Do your initial conditions start as exposed or infected (only used if model_type is "SEI"). Default False. If this is TRUE need to have both an infected_file (this can be a raster of all 0's) and exposed_file
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
path to raster file with quarantine boundaries used in calculating likelihood of quarantine escape if use_quarantine is TRUE
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)
boolean to indicate whether or not to calculate spread rates
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)
choose which method of calibration to use either 'ABC' (Approximate Bayesian Computation) or 'MCMC' (Markov Chain Monte Carlo Approximation)
how many iterations do you want to run to allow the calibration to converge (recommend a minimum of at least 100,000 but preferably 1 million).
a file with the exposed for the current
Boolean with true printing current status of calibration, (e.g. the current generation, current particle, and the acceptance rate). Defaults if FALSE.
Either c("summary_outputs", or "None"). If not "None" output folder path must be provided.
this is the full path with either / or \ (e.g., "C:/user_name/desktop/pops_sod_2020_2023/outputs/")
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.
Choose the success metric that is most relevant to your system or data for comparing simulations vs. observations. Must be one of "quantity", "allocation", "configuration", @@ -478,20 +634,82 @@
boolean to indicate whether or not to propagate and partition uncertainty from initial conditions. If TRUE the infected_file needs to have 2 layers one with the mean value and one with the standard deviation. If an SEI model is used the exposed_file needs to have 2 layers one with the mean value and one with the standard deviation
boolean to indicate whether or not to propagate and partition uncertainty from host data. If TRUE the host_file needs to have 2 layers one with the mean value and one with the standard deviation.
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")
Raster file with temperature coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly temperature coefficient standard deviations). We +convert raw temperature values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
Raster file with precipitation coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly precipitation coefficient standard deviations). We +convert raw precipitation values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
range from 0 to 1 representing the percentage +of dispersers that fall to the soil and survive.
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
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.
A file path to the file with the .csv file containing random_seeds table. +Use a file if you are trying to recreate an exact analysis otherwise we suggest leaving the +default. Default is Null which draws the seed numbers for each.
boolean to indicate if pests establish in the soil and spread out from there. +Typically used for soil borne pathogens.
path to the raster file with the starting +amount of pest or pathogen.
a dataframe of the variables saved and their success metrics for + + +
a dataframe of the variables saved and their success metrics for each run
configuration(config)
configuration(config)
list of all data necessary used to set up c++ model
config list with all data ready for pops C++ or error message
+ + +config list with all data ready for pops C++ or error message
Site built with pkgdown 2.0.2.
+Site built with pkgdown 2.0.7.
diff --git a/reference/pops.html b/reference/pops.html index d4237381..aac5c582 100644 --- a/reference/pops.html +++ b/reference/pops.html @@ -23,7 +23,7 @@ @@ -32,7 +32,7 @@ Referencepops(
- infected_file,
- host_file,
- total_populations_file,
- parameter_means,
- parameter_cov_matrix,
- temp = FALSE,
- temperature_coefficient_file = "",
- precip = FALSE,
- precipitation_coefficient_file = "",
- model_type = "SI",
- latency_period = 0,
- time_step = "month",
- season_month_start = 1,
- season_month_end = 12,
- start_date = "2008-01-01",
- end_date = "2008-12-31",
- use_survival_rates = FALSE,
- survival_rate_month = 3,
- survival_rate_day = 15,
- survival_rates_file = "",
- use_lethal_temperature = FALSE,
- temperature_file = "",
- lethal_temperature = -12.87,
- lethal_temperature_month = 1,
- mortality_on = FALSE,
- mortality_rate = 0,
- mortality_time_lag = 0,
- mortality_frequency = "year",
- mortality_frequency_n = 1,
- management = FALSE,
- treatment_dates = c(""),
- treatments_file = "",
- treatment_method = "ratio",
- natural_kernel_type = "cauchy",
- anthropogenic_kernel_type = "cauchy",
- natural_dir = "NONE",
- anthropogenic_dir = "NONE",
- pesticide_duration = c(0),
- pesticide_efficacy = 1,
- random_seed = NULL,
- output_frequency = "year",
- output_frequency_n = 1,
- movements_file = "",
- use_movements = FALSE,
- start_exposed = FALSE,
- generate_stochasticity = TRUE,
- establishment_stochasticity = TRUE,
- movement_stochasticity = TRUE,
- dispersal_stochasticity = TRUE,
- establishment_probability = 0.5,
- dispersal_percentage = 0.99,
- quarantine_areas_file = "",
- use_quarantine = FALSE,
- use_spreadrates = FALSE,
- use_overpopulation_movements = FALSE,
- overpopulation_percentage = 0,
- leaving_percentage = 0,
- leaving_scale_coefficient = 1,
- exposed_file = "",
- mask = NULL,
- network_filename = "",
- network_movement = "walk",
- use_initial_condition_uncertainty = FALSE,
- use_host_uncertainty = FALSE
-)
pops(
+ infected_file,
+ host_file,
+ total_populations_file,
+ parameter_means,
+ parameter_cov_matrix,
+ temp = FALSE,
+ temperature_coefficient_file = "",
+ precip = FALSE,
+ precipitation_coefficient_file = "",
+ model_type = "SI",
+ latency_period = 0,
+ time_step = "month",
+ season_month_start = 1,
+ season_month_end = 12,
+ start_date = "2008-01-01",
+ end_date = "2008-12-31",
+ use_survival_rates = FALSE,
+ survival_rate_month = 3,
+ survival_rate_day = 15,
+ survival_rates_file = "",
+ use_lethal_temperature = FALSE,
+ temperature_file = "",
+ lethal_temperature = -12.87,
+ lethal_temperature_month = 1,
+ mortality_on = FALSE,
+ mortality_rate = 0,
+ mortality_time_lag = 0,
+ mortality_frequency = "year",
+ mortality_frequency_n = 1,
+ management = FALSE,
+ treatment_dates = c(""),
+ treatments_file = "",
+ treatment_method = "ratio",
+ natural_kernel_type = "cauchy",
+ anthropogenic_kernel_type = "cauchy",
+ natural_dir = "NONE",
+ anthropogenic_dir = "NONE",
+ pesticide_duration = c(0),
+ pesticide_efficacy = 1,
+ random_seed = NULL,
+ output_frequency = "year",
+ output_frequency_n = 1,
+ movements_file = "",
+ use_movements = FALSE,
+ start_exposed = FALSE,
+ generate_stochasticity = TRUE,
+ establishment_stochasticity = TRUE,
+ movement_stochasticity = TRUE,
+ dispersal_stochasticity = TRUE,
+ establishment_probability = 0.5,
+ dispersal_percentage = 0.99,
+ quarantine_areas_file = "",
+ use_quarantine = FALSE,
+ use_spreadrates = FALSE,
+ use_overpopulation_movements = FALSE,
+ overpopulation_percentage = 0,
+ leaving_percentage = 0,
+ leaving_scale_coefficient = 1,
+ exposed_file = "",
+ mask = NULL,
+ network_filename = "",
+ network_movement = "walk",
+ use_initial_condition_uncertainty = FALSE,
+ use_host_uncertainty = FALSE,
+ weather_type = "deterministic",
+ temperature_coefficient_sd_file = "",
+ precipitation_coefficient_sd_file = "",
+ dispersers_to_soils_percentage = 0,
+ quarantine_directions = "",
+ multiple_random_seeds = FALSE,
+ random_seeds = NULL,
+ use_soils = FALSE,
+ soil_starting_pest_file = ""
+)
Raster file with initial infections. Units for infections are based on data availability and the way the units used for your host file is created (e.g. percent area, # of hosts per cell, etc.).
path to raster files with number of hosts and standard deviation on those estimates can be based in 3 formats (a single file with @@ -157,6 +168,8 @@
path to raster file with number of total populations of all hosts and non-hosts. This depends on how your host data is @@ -164,20 +177,28 @@
A vector of the means of the model parameters (reproductive_rate, natural_dispersal_distance, percent_natural_dispersal, anthropogenic_dispersal_distance, natural kappa, anthropogenic kappa, network_min_distance, and network_max_distance). 1x8 vector.
A covariance matrix from the previous years posterior parameter estimation ordered from (reproductive_rate, natural_dispersal_distance, percent_natural_dispersal, anthropogenic_dispersal_distance, natural kappa, anthropogenic kappa, network_min_distance, and network_max_distance) Should be 8x8 matrix.
boolean that allows the use of temperature coefficients to modify spread (TRUE or FALSE)
path to raster file with temperature coefficient data for the timestep and and time period specified (e.g. if timestep @@ -186,9 +207,13 @@
boolean that allows the use of precipitation coefficients to modify spread (TRUE or FALSE)
Raster file with precipitation coefficient data for the timestep and time period specified (e.g. if timestep @@ -197,199 +222,365 @@
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.
how often should spread occur options: ('day', 'week', -'month').
how often should spread occur options: ('day', 'week', 'month').
when does spread first start occurring in the year for your pest or pathogen (integer value between 1 and 12)
when does spread end during the year for your pest or pathogen (integer value between 1 and 12)
date to start the simulation with format ('YYYY_MM_DD')
date to end the simulation with format ('YYYY_MM_DD')
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
Raster file with survival rates from 0 to 1 representing the percentage of emergence for a cell.
a boolean to answer the question: does your pest or pathogen have a temperature at which it cannot survive? (TRUE or FALSE)
path to raster file with temperature data for minimum temperature
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 turn host mortality on and off (TRUE or FALSE)
rate at which mortality occurs value between 0 and 1
time lag from infection until mortality can occur in time steps integer >= 1
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 allow use of management (TRUE or FALSE)
dates in which to apply treatment list with format ('YYYY_MM_DD') (needs to be the same length as treatment_file and pesticide_duration)
path to raster files with treatment data by dates. Needs to be a list of files the same length as treatment_dates and pesticide_duration.
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')
sets the predominate direction of natural dispersal usually due to wind values ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')
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')
how long does the pestcide (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)
how effictive is the pesticide at preventing the disease or killing the pest (if this is 0.70 then when applied it successfully treats 70 percent of the plants or animals)
sets the random seed for the simulation used for -reproducibility
sets the random seed for the simulation used for reproducibility
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.
this is a csv file with columns lon_from, lat_from, lon_to, lat_to, number of animals, and date.
this is a boolean to turn on use of the movement module.
Do your initial conditions start as exposed or infected (only used if model_type is "SEI"). Default False. If this is TRUE need to have both an infected_file (this can be a raster of all 0's) and exposed_file
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
path to raster file with quarantine boundaries used in calculating likelihood of quarantine escape if use_quarantine is TRUE
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)
boolean to indicate whether or not to calculate spread rates
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)
a file with the exposed for the current
Raster file used to provide a mask to remove 0's that are not true negatives from comparisons (e.g. mask out lakes and oceans from statics if modeling terrestrial species). This can also be used to mask out areas that can't be managed in the auto_manage function.
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.
boolean to indicate whether or not to propagate and partition uncertainty from initial conditions. If TRUE the infected_file needs to have 2 layers one with the mean value and one with the standard deviation. If an SEI model is used the exposed_file needs to have 2 layers one with the mean value and one with the standard deviation
boolean to indicate whether or not to propagate and partition uncertainty from host data. If TRUE the host_file needs to have 2 layers one with the mean value and one with the standard deviation.
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")
Raster file with temperature coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly temperature coefficient standard deviations). We +convert raw temperature values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
Raster file with precipitation coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly precipitation coefficient standard deviations). We +convert raw precipitation values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
range from 0 to 1 representing the percentage +of dispersers that fall to the soil and survive.
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
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.
A file path to the file with the .csv file containing random_seeds table. +Use a file if you are trying to recreate an exact analysis otherwise we suggest leaving the +default. Default is Null which draws the seed numbers for each.
boolean to indicate if pests establish in the soil and spread out from there. +Typically used for soil borne pathogens.
path to the raster file with the starting +amount of pest or pathogen.
list of infected and susceptible per year
+ + +list of infected and susceptible per year
pops_model(
- random_seed,
- use_lethal_temperature,
- lethal_temperature,
- lethal_temperature_month,
- use_survival_rates,
- survival_rate_month,
- survival_rate_day,
- infected,
- total_exposed,
- exposed,
- susceptible,
- total_populations,
- total_hosts,
- mortality_on,
- mortality_tracker,
- mortality,
- quarantine_areas,
- treatment_maps,
- treatment_dates,
- pesticide_duration,
- resistant,
- use_movements,
- movements,
- movements_dates,
- weather,
- temperature,
- survival_rates,
- weather_coefficient,
- res,
- rows_cols,
- time_step,
- reproductive_rate,
- spatial_indices,
- season_month_start_end,
- mortality_rate = 0,
- mortality_time_lag = 2,
- 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"
-)
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,
+ infected,
+ total_exposed,
+ exposed,
+ susceptible,
+ total_populations,
+ total_hosts,
+ mortality_on,
+ mortality_tracker,
+ mortality,
+ quarantine_areas,
+ quarantine_directions,
+ treatment_maps,
+ treatment_dates,
+ pesticide_duration,
+ resistant,
+ 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,
+ mortality_rate = 0,
+ mortality_time_lag = 2,
+ 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
+)
sets the random seed for the simulation used for -reproducibility
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.
A file path to the file with the .csv file containing random_seeds table. +Use a file if you are trying to recreate an exact analysis otherwise we suggest leaving the +default. Default is Null which draws the seed numbers for each.
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
matrix of infected hosts
sum of all exposed cohorts in exposed class for use with "SEI" model type
vector of matrices of the exposed class for use with "SEI" model type
matrix of susceptible hosts
matrix of total populations
matrix of all hosts
boolean to turn host mortality on and off (TRUE or FALSE)
matrix of 0's to track mortality per year
matrix to track cumulative mortality
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 pestcide (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)
matrix to track resistant population over time
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').
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
rate at which mortality occurs value between 0 and 1
time lag from infection until mortality can occur in time steps integer >= 1
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'.
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 ("probablisticc") or as a time +series ("deterministic")
range from 0 to 1 representing the percentage +of dispersers that fall to the soil and survive.
list of vector matrices of infected and susceptible hosts per + + +
list of vector matrices of infected and susceptible hosts per simulated year and associated statistics (e.g. spread rate)
pops_multirun(
- infected_file,
- host_file,
- total_populations_file,
- parameter_means,
- parameter_cov_matrix,
- temp = FALSE,
- temperature_coefficient_file = "",
- precip = FALSE,
- precipitation_coefficient_file = "",
- model_type = "SI",
- latency_period = 0,
- time_step = "month",
- season_month_start = 1,
- season_month_end = 12,
- start_date = "2008-01-01",
- end_date = "2008-12-31",
- use_survival_rates = FALSE,
- survival_rate_month = 3,
- survival_rate_day = 15,
- survival_rates_file = "",
- use_lethal_temperature = FALSE,
- temperature_file = "",
- lethal_temperature = -12.87,
- lethal_temperature_month = 1,
- mortality_on = FALSE,
- mortality_rate = 0,
- mortality_time_lag = 0,
- mortality_frequency = "year",
- mortality_frequency_n = 1,
- management = FALSE,
- treatment_dates = c(""),
- treatments_file = "",
- treatment_method = "ratio",
- natural_kernel_type = "cauchy",
- anthropogenic_kernel_type = "cauchy",
- natural_dir = "NONE",
- anthropogenic_dir = "NONE",
- number_of_iterations = 100,
- number_of_cores = NA,
- pesticide_duration = 0,
- pesticide_efficacy = 1,
- random_seed = NULL,
- output_frequency = "year",
- output_frequency_n = 1,
- movements_file = "",
- use_movements = FALSE,
- start_exposed = FALSE,
- generate_stochasticity = TRUE,
- establishment_stochasticity = TRUE,
- movement_stochasticity = TRUE,
- dispersal_stochasticity = TRUE,
- establishment_probability = 0.5,
- dispersal_percentage = 0.99,
- quarantine_areas_file = "",
- use_quarantine = FALSE,
- use_spreadrates = FALSE,
- use_overpopulation_movements = FALSE,
- overpopulation_percentage = 0,
- leaving_percentage = 0,
- leaving_scale_coefficient = 1,
- exposed_file = "",
- mask = NULL,
- write_outputs = "None",
- output_folder_path = "",
- network_filename = "",
- network_movement = "walk",
- use_initial_condition_uncertainty = FALSE,
- use_host_uncertainty = FALSE
-)
pops_multirun(
+ infected_file,
+ host_file,
+ total_populations_file,
+ parameter_means,
+ parameter_cov_matrix,
+ temp = FALSE,
+ temperature_coefficient_file = "",
+ precip = FALSE,
+ precipitation_coefficient_file = "",
+ model_type = "SI",
+ latency_period = 0,
+ time_step = "month",
+ season_month_start = 1,
+ season_month_end = 12,
+ start_date = "2008-01-01",
+ end_date = "2008-12-31",
+ use_survival_rates = FALSE,
+ survival_rate_month = 3,
+ survival_rate_day = 15,
+ survival_rates_file = "",
+ use_lethal_temperature = FALSE,
+ temperature_file = "",
+ lethal_temperature = -12.87,
+ lethal_temperature_month = 1,
+ mortality_on = FALSE,
+ mortality_rate = 0,
+ mortality_time_lag = 0,
+ mortality_frequency = "year",
+ mortality_frequency_n = 1,
+ management = FALSE,
+ treatment_dates = c(""),
+ treatments_file = "",
+ treatment_method = "ratio",
+ natural_kernel_type = "cauchy",
+ anthropogenic_kernel_type = "cauchy",
+ natural_dir = "NONE",
+ anthropogenic_dir = "NONE",
+ number_of_iterations = 100,
+ number_of_cores = NA,
+ pesticide_duration = 0,
+ pesticide_efficacy = 1,
+ random_seed = NULL,
+ output_frequency = "year",
+ output_frequency_n = 1,
+ movements_file = "",
+ use_movements = FALSE,
+ start_exposed = FALSE,
+ generate_stochasticity = TRUE,
+ establishment_stochasticity = TRUE,
+ movement_stochasticity = TRUE,
+ dispersal_stochasticity = TRUE,
+ establishment_probability = 0.5,
+ dispersal_percentage = 0.99,
+ quarantine_areas_file = "",
+ use_quarantine = FALSE,
+ use_spreadrates = FALSE,
+ use_overpopulation_movements = FALSE,
+ overpopulation_percentage = 0,
+ leaving_percentage = 0,
+ leaving_scale_coefficient = 1,
+ exposed_file = "",
+ mask = NULL,
+ write_outputs = "None",
+ output_folder_path = "",
+ network_filename = "",
+ network_movement = "walk",
+ use_initial_condition_uncertainty = FALSE,
+ use_host_uncertainty = FALSE,
+ weather_type = "deterministic",
+ temperature_coefficient_sd_file = "",
+ precipitation_coefficient_sd_file = "",
+ dispersers_to_soils_percentage = 0,
+ quarantine_directions = "",
+ multiple_random_seeds = FALSE,
+ random_seeds = NULL,
+ use_soils = FALSE,
+ soil_starting_pest_file = ""
+)
Raster file with initial infections. Units for infections are based on data availability and the way the units used for your host file is created (e.g. percent area, # of hosts per cell, etc.).
path to raster files with number of hosts and standard deviation on those estimates can be based in 3 formats (a single file with @@ -165,6 +176,8 @@
path to raster file with number of total populations of all hosts and non-hosts. This depends on how your host data is @@ -172,20 +185,28 @@
A vector of the means of the model parameters (reproductive_rate, natural_dispersal_distance, percent_natural_dispersal, anthropogenic_dispersal_distance, natural kappa, anthropogenic kappa, network_min_distance, and network_max_distance). 1x8 vector.
A covariance matrix from the previous years posterior parameter estimation ordered from (reproductive_rate, natural_dispersal_distance, percent_natural_dispersal, anthropogenic_dispersal_distance, natural kappa, anthropogenic kappa, network_min_distance, and network_max_distance) Should be 8x8 matrix.
boolean that allows the use of temperature coefficients to modify spread (TRUE or FALSE)
path to raster file with temperature coefficient data for the timestep and and time period specified (e.g. if timestep @@ -194,9 +215,13 @@
boolean that allows the use of precipitation coefficients to modify spread (TRUE or FALSE)
Raster file with precipitation coefficient data for the timestep and time period specified (e.g. if timestep @@ -205,211 +230,385 @@
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.
how often should spread occur options: ('day', 'week', -'month').
how often should spread occur options: ('day', 'week', 'month').
when does spread first start occurring in the year for your pest or pathogen (integer value between 1 and 12)
when does spread end during the year for your pest or pathogen (integer value between 1 and 12)
date to start the simulation with format ('YYYY_MM_DD')
date to end the simulation with format ('YYYY_MM_DD')
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
Raster file with survival rates from 0 to 1 representing the percentage of emergence for a cell.
a boolean to answer the question: does your pest or pathogen have a temperature at which it cannot survive? (TRUE or FALSE)
path to raster file with temperature data for minimum temperature
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 turn host mortality on and off (TRUE or FALSE)
rate at which mortality occurs value between 0 and 1
time lag from infection until mortality can occur in time steps integer >= 1
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 allow use of management (TRUE or FALSE)
dates in which to apply treatment list with format ('YYYY_MM_DD') (needs to be the same length as treatment_file and pesticide_duration)
path to raster files with treatment data by dates. Needs to be a list of files the same length as treatment_dates and pesticide_duration.
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')
sets the predominate direction of natural dispersal usually due to wind values ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')
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')
how many iterations do you want to run to allow the calibration to converge at least 10
enter how many cores you want to use (default = NA). If not set uses the # of CPU cores - 1. must be an integer >= 1
how long does the pestcide (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)
how effictive is the pesticide at preventing the disease or killing the pest (if this is 0.70 then when applied it successfully treats 70 percent of the plants or animals)
sets the random seed for the simulation used for -reproducibility
sets the random seed for the simulation used for reproducibility
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.
this is a csv file with columns lon_from, lat_from, lon_to, lat_to, number of animals, and date.
this is a boolean to turn on use of the movement module.
Do your initial conditions start as exposed or infected (only used if model_type is "SEI"). Default False. If this is TRUE need to have both an infected_file (this can be a raster of all 0's) and exposed_file
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
path to raster file with quarantine boundaries used in calculating likelihood of quarantine escape if use_quarantine is TRUE
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)
boolean to indicate whether or not to calculate spread rates
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)
a file with the exposed for the current
Raster file used to provide a mask to remove 0's that are not true negatives from comparisons (e.g. mask out lakes and oceans from statics if modeling terrestrial species). This can also be used to mask out areas that can't be managed in the auto_manage function.
Either c("summary_outputs", or "None"). If not "None" output folder path must be provided.
this is the full path with either / or \ (e.g., "C:/user_name/desktop/pops_sod_2020_2023/outputs/")
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.
boolean to indicate whether or not to propagate and partition uncertainty from initial conditions. If TRUE the infected_file needs to have 2 layers one with the mean value and one with the standard deviation. If an SEI model is used the exposed_file needs to have 2 layers one with the mean value and one with the standard deviation
boolean to indicate whether or not to propagate and partition uncertainty from host data. If TRUE the host_file needs to have 2 layers one with the mean value and one with the standard deviation.
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")
Raster file with temperature coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly temperature coefficient standard deviations). We +convert raw temperature values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
Raster file with precipitation coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly precipitation coefficient standard deviations). We +convert raw precipitation values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
range from 0 to 1 representing the percentage +of dispersers that fall to the soil and survive.
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
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.
A file path to the file with the .csv file containing random_seeds table. +Use a file if you are trying to recreate an exact analysis otherwise we suggest leaving the +default. Default is Null which draws the seed numbers for each.
boolean to indicate if pests establish in the soil and spread out from there. +Typically used for soil borne pathogens.
path to the raster file with the starting +amount of pest or pathogen.
list of infected and susceptible per year
+ + +list of infected and susceptible per year
quantity_allocation_disagreement(
- reference,
- comparison,
- use_configuration = FALSE,
- mask = NULL,
- use_distance = FALSE
-)
quantity_allocation_disagreement(
+ reference,
+ comparison,
+ use_configuration = FALSE,
+ mask = NULL,
+ use_distance = FALSE
+)
the raster with ground truth data. For all metrics expect RMSE these values are reclassified with values > 1 becoming 1, values < 1 going to 0, and NA values staying NA.
the raster with simulated data. For all metrics expect RMSE these values are reclassified with values > 1 becoming 1, values < 1 going to 0.
Boolean if you want to use configuration disagreement for comparing model runs. Default is FALSE.
Used to provide a mask to remove 0's that are not true negatives from comparisons.
Boolean if you want to compare distance between simulations and observations. Default is FALSE.
A data frame with spatial configuration metrics. Particularly + + +
A data frame with spatial configuration metrics. Particularly quantity, allocation, and total disagreement, omission and commission, and directional disagreement where directional disagreement.
validate(
- infected_years_file,
- number_of_iterations = 10,
- number_of_cores = NA,
- parameter_means,
- parameter_cov_matrix,
- infected_file,
- host_file,
- total_populations_file,
- temp = FALSE,
- temperature_coefficient_file = "",
- precip = FALSE,
- precipitation_coefficient_file = "",
- model_type = "SI",
- latency_period = 0,
- time_step = "month",
- season_month_start = 1,
- season_month_end = 12,
- start_date = "2008-01-01",
- end_date = "2008-12-31",
- use_survival_rates = FALSE,
- survival_rate_month = 3,
- survival_rate_day = 15,
- survival_rates_file = "",
- use_lethal_temperature = FALSE,
- temperature_file = "",
- lethal_temperature = -12.87,
- lethal_temperature_month = 1,
- mortality_on = FALSE,
- mortality_rate = 0,
- mortality_time_lag = 0,
- mortality_frequency = "year",
- mortality_frequency_n = 1,
- management = FALSE,
- treatment_dates = c(""),
- treatments_file = "",
- treatment_method = "ratio",
- natural_kernel_type = "cauchy",
- anthropogenic_kernel_type = "cauchy",
- natural_dir = "NONE",
- anthropogenic_dir = "NONE",
- pesticide_duration = 0,
- pesticide_efficacy = 1,
- mask = NULL,
- output_frequency = "year",
- output_frequency_n = 1,
- movements_file = "",
- use_movements = FALSE,
- start_exposed = FALSE,
- generate_stochasticity = TRUE,
- establishment_stochasticity = TRUE,
- movement_stochasticity = TRUE,
- dispersal_stochasticity = TRUE,
- establishment_probability = 0.5,
- dispersal_percentage = 0.99,
- quarantine_areas_file = "",
- use_quarantine = FALSE,
- use_spreadrates = FALSE,
- use_overpopulation_movements = FALSE,
- overpopulation_percentage = 0,
- leaving_percentage = 0,
- leaving_scale_coefficient = 1,
- exposed_file = "",
- write_outputs = "None",
- output_folder_path = "",
- point_file = "",
- network_filename = "",
- network_movement = "walk",
- use_distance = FALSE,
- use_configuration = FALSE,
- use_initial_condition_uncertainty = FALSE,
- use_host_uncertainty = FALSE
-)
validate(
+ infected_years_file,
+ number_of_iterations = 10,
+ number_of_cores = NA,
+ parameter_means,
+ parameter_cov_matrix,
+ infected_file,
+ host_file,
+ total_populations_file,
+ temp = FALSE,
+ temperature_coefficient_file = "",
+ precip = FALSE,
+ precipitation_coefficient_file = "",
+ model_type = "SI",
+ latency_period = 0,
+ time_step = "month",
+ season_month_start = 1,
+ season_month_end = 12,
+ start_date = "2008-01-01",
+ end_date = "2008-12-31",
+ use_survival_rates = FALSE,
+ survival_rate_month = 3,
+ survival_rate_day = 15,
+ survival_rates_file = "",
+ use_lethal_temperature = FALSE,
+ temperature_file = "",
+ lethal_temperature = -12.87,
+ lethal_temperature_month = 1,
+ mortality_on = FALSE,
+ mortality_rate = 0,
+ mortality_time_lag = 0,
+ mortality_frequency = "year",
+ mortality_frequency_n = 1,
+ management = FALSE,
+ treatment_dates = c(""),
+ treatments_file = "",
+ treatment_method = "ratio",
+ natural_kernel_type = "cauchy",
+ anthropogenic_kernel_type = "cauchy",
+ natural_dir = "NONE",
+ anthropogenic_dir = "NONE",
+ pesticide_duration = 0,
+ pesticide_efficacy = 1,
+ mask = NULL,
+ output_frequency = "year",
+ output_frequency_n = 1,
+ movements_file = "",
+ use_movements = FALSE,
+ start_exposed = FALSE,
+ generate_stochasticity = TRUE,
+ establishment_stochasticity = TRUE,
+ movement_stochasticity = TRUE,
+ dispersal_stochasticity = TRUE,
+ establishment_probability = 0.5,
+ dispersal_percentage = 0.99,
+ quarantine_areas_file = "",
+ use_quarantine = FALSE,
+ use_spreadrates = FALSE,
+ use_overpopulation_movements = FALSE,
+ overpopulation_percentage = 0,
+ leaving_percentage = 0,
+ leaving_scale_coefficient = 1,
+ exposed_file = "",
+ write_outputs = "None",
+ output_folder_path = "",
+ point_file = "",
+ network_filename = "",
+ network_movement = "walk",
+ use_distance = FALSE,
+ use_configuration = FALSE,
+ use_initial_condition_uncertainty = FALSE,
+ use_host_uncertainty = FALSE,
+ weather_type = "deterministic",
+ temperature_coefficient_sd_file = "",
+ precipitation_coefficient_sd_file = "",
+ dispersers_to_soils_percentage = 0,
+ quarantine_directions = "",
+ multiple_random_seeds = FALSE,
+ random_seeds = NULL,
+ use_soils = FALSE,
+ soil_starting_pest_file = ""
+)
years of initial infection/infestation as individual locations of a pest or pathogen in raster format
how many iterations do you want to run to allow the calibration to converge at least 10
enter how many cores you want to use (default = NA). If not set uses the # of CPU cores - 1. must be an integer >= 1
the parameter means from the abc calibration function (posterior means)
the parameter covariance matrix from the ABC calibration function (posterior covariance matrix)
Raster file with initial infections. Units for infections are based on data availability and the way the units used for your host file is created (e.g. percent area, # of hosts per cell, etc.).
path to raster files with number of hosts and standard deviation on those estimates can be based in 3 formats (a single file with @@ -178,6 +199,8 @@
path to raster file with number of total populations of all hosts and non-hosts. This depends on how your host data is @@ -185,9 +208,13 @@
boolean that allows the use of temperature coefficients to modify spread (TRUE or FALSE)
path to raster file with temperature coefficient data for the timestep and and time period specified (e.g. if timestep @@ -196,9 +223,13 @@
boolean that allows the use of precipitation coefficients to modify spread (TRUE or FALSE)
Raster file with precipitation coefficient data for the timestep and time period specified (e.g. if timestep @@ -207,209 +238,384 @@
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.
how often should spread occur options: ('day', 'week', -'month').
how often should spread occur options: ('day', 'week', 'month').
when does spread first start occurring in the year for your pest or pathogen (integer value between 1 and 12)
when does spread end during the year for your pest or pathogen (integer value between 1 and 12)
date to start the simulation with format ('YYYY_MM_DD')
date to end the simulation with format ('YYYY_MM_DD')
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
Raster file with survival rates from 0 to 1 representing the percentage of emergence for a cell.
a boolean to answer the question: does your pest or pathogen have a temperature at which it cannot survive? (TRUE or FALSE)
path to raster file with temperature data for minimum temperature
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 turn host mortality on and off (TRUE or FALSE)
rate at which mortality occurs value between 0 and 1
time lag from infection until mortality can occur in time steps integer >= 1
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 allow use of management (TRUE or FALSE)
dates in which to apply treatment list with format ('YYYY_MM_DD') (needs to be the same length as treatment_file and pesticide_duration)
path to raster files with treatment data by dates. Needs to be a list of files the same length as treatment_dates and pesticide_duration.
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')
sets the predominate direction of natural dispersal usually due to wind values ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')
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')
how long does the pestcide (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)
how effictive is the pesticide at preventing the disease or killing the pest (if this is 0.70 then when applied it successfully treats 70 percent of the plants or animals)
Raster file used to provide a mask to remove 0's that are not true negatives from comparisons (e.g. mask out lakes and oceans from statics if modeling terrestrial species).
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.
this is a csv file with columns lon_from, lat_from, lon_to, lat_to, number of animals, and date.
this is a boolean to turn on use of the movement module.
Do your initial conditions start as exposed or infected (only used if model_type is "SEI"). Default False. If this is TRUE need to have both an infected_file (this can be a raster of all 0's) and exposed_file
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
path to raster file with quarantine boundaries used in calculating likelihood of quarantine escape if use_quarantine is TRUE
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)
boolean to indicate whether or not to calculate spread rates
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)
a file with the exposed for the current
Either c("summary_outputs", or "None"). If not "None" output folder path must be provided.
this is the full path with either / or \ (e.g., "C:/user_name/desktop/pops_sod_2020_2023/outputs/")
file for point comparison if not provided skips calculations
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.
Boolean if you want to compare distance between simulations and observations. Default is FALSE.
Boolean if you want to use configuration disagreement for comparing model runs. Default is FALSE.
boolean to indicate whether or not to propagate and partition uncertainty from initial conditions. If TRUE the infected_file needs to have 2 layers one with the mean value and one with the standard deviation. If an SEI model is used the exposed_file needs to have 2 layers one with the mean value and one with the standard deviation
boolean to indicate whether or not to propagate and partition uncertainty from host data. If TRUE the host_file needs to have 2 layers one with the mean value and one with the standard deviation.
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")
Raster file with temperature coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly temperature coefficient standard deviations). We +convert raw temperature values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
Raster file with precipitation coefficient standard +deviation data for the timestep and time period specified (e.g. if timestep = week this file +would have 52 bands with data being weekly precipitation coefficient standard deviations). We +convert raw precipitation values to coefficients that affect the reproduction and survival of +the pest all values in the raster are between 0 and 1.
range from 0 to 1 representing the percentage +of dispersers that fall to the soil and survive.
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
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.
A file path to the file with the .csv file containing random_seeds table. +Use a file if you are trying to recreate an exact analysis otherwise we suggest leaving the +default. Default is Null which draws the seed numbers for each.
boolean to indicate if pests establish in the soil and spread out from there. +Typically used for soil borne pathogens.
path to the raster file with the starting +amount of pest or pathogen.
a data frame of statistical measures of model performance.
+ + +a data frame of statistical measures of model performance.