R/data.R

#' Development times for aphids and wasps.
#'
#' See `vignette("internals", "gameofclones")` for the exact values here.
#'
#'
#' @format A list with two items:
#' \describe{
#'   \item{instar_days}{Number of days per instar, for low (\code{lowT}) and
#'         high (\code{highT}) temperatures (20º and 27º C).}
#'   \item{mum_days}{1x2 matrix with the number of days per stage of an aphid
#'                   being parasitized: living and dead ("mummy"), respectively.}
#' }
#'
#' @source \url{http://doi.wiley.com/10.1890/13-1933.1}
#'
"dev_times"


#' Population rates and starting values for aphids and wasps.
#'
#' See `vignette("internals", "gameofclones")` for more information and
#' for the exact values used.
#'
#'
#' @format A list with ten items:
#' \describe{
#'   \item{surv_juv}{
#'       List of length two, each item a length-of-one numeric vector containing
#'       juvenile daily survival for aphid lines with low and high survivals
#'       (\code{low} and \code{high}).
#'   }
#'   \item{surv_adult}{
#'       List of length two, each item a 1x200 matrix containing
#'       adults daily survival for aphid lines with low and high survivals
#'       (\code{low} and \code{high}).
#'       Although each matrix has 200 columns, most of them are filled with zeros.
#'   }
#'   \item{repro}{
#'       List of length two, each item a 1x200 matrix containing
#'       daily reproduction for aphid lines with low and high reproduction
#'       (\code{low} and \code{high}).
#'       Although each matrix has 200 columns, most of them are filled with zeros.
#'   }
#'   \item{K}{
#'     A single number representing aphid density dependence.
#'   }
#'   \item{K_y}{
#'     A single number representing parasitized aphid density dependence.
#'   }
#'   \item{s_y}{
#'     A single number representing parasitoid adult daily survival.
#'   }
#'   \item{sex_ratio}{
#'     A single number representing proportion of female wasps.
#'   }
#'   \item{aphids_0}{
#'     A single number representing initial density of aphids.
#'   }
#'   \item{wasps_0}{
#'     A single number representing initial densities of wasps.
#'   }
#'   \item{prop_resist}{
#'     A single number representing proportion of resistant clones.
#'   }
#' }
#'
#' @source \url{http://doi.wiley.com/10.1890/13-1933.1}
#'
"populations"


#' Wasp attack rate parameters.
#'
#' See `vignette("internals", "gameofclones")` for more information and
#' for the exact values used.
#'
#'
#' @format A list with five items:
#' \describe{
#'   \item{a}{
#'     parasitoid attack rate
#'   }
#'   \item{k}{
#'     aggregation parameter of the negative binomial distribution
#'   }
#'   \item{h}{
#'     parasitoid attack rate handling time
#'   }
#'   \item{rel_attack}{
#'     A vector of length 5, giving  relative attack rates on the
#'     different instars.
#'   }
#'   \item{attack_surv}{
#'     A numeric vector of length two, of survivals of singly attacked and
#'     multiply attacked resistant aphids.
#'     \emph{Note:} This is not from either paper, but from unpublished code by
#'     Anthony Ives.
#'   }
#' }
#'
#' @source \url{http://doi.wiley.com/10.1890/13-1933.1}
#' @source \url{http://www.journals.uchicago.edu/doi/10.1086/303269}
#'
"wasp_attack"


#' Parameters associated with environmental effects and stochasticity.
#'
#' See `vignette("internals", "gameofclones")` for more information and
#' for the exact values used.
#'
#'
#' @format A list of length 9:
#' \describe{
#'   \item{harvest_surv}{
#'       Numeric vector of length 1 for aphid survival rate at harvesting.
#'   }
#'   \item{disp_aphid}{
#'       Numeric vector of length 1 for dispersal rates between fields for aphids,
#'       adult wasps.
#'   }
#'   \item{disp_wasp}{
#'       Numeric vector of length 1 for dispersal rates between fields for aphids,
#'       adult wasps.
#'   }
#'   \item{pred_rate}{
#'       Numeric vector of length 1 for predation rate for aphids and non-adult wasps.
#'   }
#'   \item{cycle_length}{
#'       Numeric vector of length 1 for time between harvests (typical for alfalfa).
#'   }
#'   \item{field_disp_start}{
#'     List of length 2, each item of which contains a 1-length numeric vector
#'     indicating the day at which aphids begin dispersing for 20ºC  (\code{lowT})
#'     and 27ºC (\code{highT}).
#'     It's assumed that only adults are dispersing, but the day at which
#'     this occurs depends on how quickly the aphids are developing.
#'   }
#'   \item{sigma_x}{
#'     Numeric vector of length 1, indicating environmental std dev for aphids.
#'   }
#'   \item{sigma_y}{
#'     Numeric vector of length 1, indicating environmental std dev for wasps.
#'   }
#'   \item{rho}{
#'     Numeric vector of length 1, indicating environmental correlation among instars.
#'   }
#' }
#'
#' @source \url{http://doi.wiley.com/10.1890/13-1933.1}
#'
"environ"
lucasnell/clonewars documentation built on Oct. 12, 2023, 4:39 p.m.