Hum.Drug.Treat.MN: Nested Human drug treatment sampler

Description Usage Arguments Details Examples

View source: R/HumDrugTreatMN.R

Description

Only for use within multinom()

Usage

1
Hum.Drug.Treat.MN(sing_I, probs)

Arguments

sing_I

Matrix, Infectious humans, each row is days since becoming infectious

probs

Function, giving the probability of completing EIP on a given day

Details

Returns a matrix of newly prophylactic drug treated humans

Examples

1
2
3
sing_I = matrix(round(runif(100, 0, 10), 0), nrow = 10, ncol = 10)
probs <- c(rep(0.5, 5), rep(0, 5))
Hum.Drug.Treat.MN(sing_I, probs)

obrady/SpatialDengue documentation built on Nov. 27, 2020, 12:13 p.m.