Description Usage Arguments Details Examples
View source: R/BetaEnvGenerate.R
Generates a continuous landscape of human <-> vector contact rates given parameters of mean and variance of contact rate and the degree of spatial correlation with susceptibility
1 | betaEnv.generate(bmean, bcorrelation, stim)
|
bmean |
the mean human <-> vector contact rate across the landscape |
bcorrelation |
the degree of correlation between human susceptibility and human <-> vector contact rate, must be in interval -1 to 1 |
stim |
a vector of the starting immunity levels in each pixel |
Between the three supplied parameters this controls the intensity of transmission, its spatial variability and its spatial structure (in particularlly whether transmission intensity is most intense in areas that have experience recent transmission, or areas that have not experience recent transmission), i.e. does the outbreak happen in a new area or an existign area of high intensity transmission? The implementation is stochastic and an approximation.
1 2 3 4 5 6 7 8 9 10 11 12 | data(sgdat)
data(sgpop)
sgpop <- pop.process(sgpop, agg = 10)
unipix <- make.unipix(sgpop)
sgdat <- data.frame(sgdat, patchID = apply(cbind(sgdat[, 3:2]), 1, pix.id.find, unipix))
sero <- c(0.577, 0.659, 0.814)
startweek <- 40
stim <- stim.generate(sgdat, sero, startweek, sgpop, unipix)
par(mfrow = c(2, 1))
plot.state(stim, sgpop, unipix)
betaEnv <- betaEnv.generate(bmean = 8, bcorrelation = -1, stim)
plot.state(betaEnv, sgpop, unipix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.