Description Usage Arguments Details Value Examples
Compute the Return on Investment (ROI) surface coefficients from population probabilities
1 |
probabilities, |
a |
As, |
the starting age(s) to consider |
Ls, |
the maximum number of tests for each age; should either be an integer per age or a single integer for all ages.
The default behavior computes the number of tests (for each age) that makes the maximum of 'As' the maximum testing age
Note: results will also be provided for shorter testing intervals, as the intermediate coefficients are calculated as part
of computing the value at the maximum |
computes the coefficients for the economic calculations
a data.frame
(data.table
, if available) with columns:
integer; the age when routine test-then-vaccinate strategy starts (from As
)
integer; the maximum number of tests for routine test-then-vaccinate strategy (from Ls
)
numeric; the fraction of individuals participating in this strategy that get vaccinated
numeric; the (additive) reduction in vacfrac
if using the ordinal test
numeric; the proportion experiencing second infection costs
numeric; the F/S cost fraction term, when comparing vaccination with and without testing
numeric; the S term, when comparing vaccination with and without testing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | require(denvax);
data(morrison2010) # has counts by age
fit <- with(morrison2010, serofit(sero=Seropositive, N=Number, age.min=Age))
m2010pop <- synthetic.pop(fit, runs = 10, popsize = 10) # small sample size for example run time
m2010lh <- nPxA(m2010pop)
rc <- ROIcoeffs(m2010lh, As=5:10, Ls=5)
pp <- par()
par(mfrow=c(1, 2))
rcs <- subset(rc, A==10 & L < 11)
with(rcs, plot(
L, aveTests, type="l",
xlab="Max # of Tests Allowed",
ylab="Ave # of Tests Administered",
main="Starting @ Age 10",
ylim=c(1, 3)
))
rcs <- subset(rc, A==5 & L < 11)
with(rcs, plot(
L, aveTests, type="l",
xlab="Max # of Tests Allowed",
ylab="",
main="Starting @ Age 5",
ylim=c(1, 3)
))
par(pp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.