Learn R Programming

EpiPvr (version 0.0.1)

solveInoculumStatesBP: Compute Epidemic Probability via Transition and Fertility Matrices

Description

Computes the extended transition probability matrix and fertility matrix used in epidemic probability calculations.

Usage

solveInoculumStatesBP(numVars, ext_pams, est_pams, interv)

Value

Numeric array. A combined array (rbind) of:

ttilde

Extended transition probability matrix.

f

Fertility matrix.

The returned array has dimensions (numVars + 1 + numVars) x numVars. The additional row in ttilde represents the probability of no event occurring within a time step.

Arguments

numVars

Numeric. Number of inoculum states (determined by the number of insects per plant in the main function).

ext_pams

Numeric vector of length 5. Local rate parameters (per day): The first element specifies the Vector dispersal rate, the second the Roguing rate, the third the Vector mortality rate, the forth the Harvesting rate, the fifth the Plant latent progression rate

est_pams

Numeric vector of length 3. Virus rate parameters (per day):

[1]

Acquisition rate.

[2]

Inoculation rate.

[3]

Insect recovery rate.

interv

Numeric. Value of the transition matrix time step.

Details

Computes the transition probability matrix used in extinction probability calculations. The function returns two matrices:

  • ttilde: Population transition matrix.

  • f: Fertility matrix. The matrix dimensions depend on the number of insects per plant, allowing for flexibility across different insect burdens. For further details, refer to Donnelly, Tankam, and Gilligan (2025, manuscript).