initialise_adults: Creates an initial data.table of adult agents. Since this is...

Description Usage Arguments Value Data.table variables and initialisation

View source: R/constructors.R

Description

Creates an initial data.table of adult agents. Since this is an initial spread, some data is made up/dummy: for example, we don't know the ID of the parents. Latitude/Longitude of agents is randomly determined through another function init_position and added to the data.table after construction.

Usage

1
initialise_adults(N, pmale, boundaryDat, grid.df)

Arguments

N

The number of initial adult agents.

pmale

Probability of being male.

Value

A data.table of N adult agents.

Data.table variables and initialisation

gender: Male is 0, female is 1. Sampled by 1 Binomial trial as opposed to a Bernoulli trial as Bernoulli requires another package. mateID: Unique ID of their mate. Since no initial mosquitoes will have a mate yet, it is initialised as -1. Males will always have mateID as -1 since they can have multiple mates. enzyme: Enzyme Kinetic Score. See init for explanation. Initialised uniform randomly. age: Age in days. Initialised uniform randomly around what we would expect young adults to be. gonoCycle: Gonotrophic cycle. Means something different for males and females. males: number of times they've mated in a day, to be reset daily females: how many times they've laid a clutch of eggs we roughly estimate the gonoCycle of females based on age. timeDeath: Timestep they died: initialised as -1 as they are alive. typeDeath: Random mortality/trapped death/death due to old age: which type? whereTrapped: in the event of trapped death, where did they die? -1 otherwise. motherID: Unique ID of mother. -1 for initial adult data.table fatherID: Unique ID of father. -1 for initial adult data.table. infStatus: 1 if they carry Wolbachia, 0 if no Wolbachia, -1 for CI for initial wild type we assume they all start with 0. lat: Initial north/south or 'y' coordinate of agent. Should start with -16. long: Initial east/west of 'x' coordinate of agent. Should start with 145.


beeysian/cairnsmozzie documentation built on Feb. 15, 2021, 12:12 a.m.