Description Usage Arguments Details Value Examples
Compute the ROI surfaces given test and vaccine cost fractions.
1 2 |
rcoeffs, |
a data.frame with the ROI surface coefficients from ROIcoeffs |
nus, |
the series of normalized vaccine costs to use for ROI calcs |
taus, |
the series of normalized test costs to use for ROI calcs |
tabulates ROI
a 'data.frame' ('data.table', if available) with columns:
numeric, the normalized vaccine cost used
numeric, the normalized test cost used
character, either "ordinal" or "binary" corresponding to the type of test
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 intervention cost (as a fraction of second infection cost)
numeric; the difference in health outcome cost (as a fraction of second infection cost) minus 'cost'; positive values indicate positive net benefit
numeric; return on investment: 'benefit' over 'cost'
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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)
L <- 5
rc <- ROIcoeffs(m2010lh, As=5:10, Ls=L)
rois <- ROI(rc, nus = 0.5, taus = 0.01)
srois <- subset(rois, mechanism == "binary")
mrois <- matrix(srois$roi, nrow = L)
contour(x=unique(srois$L), y=unique(srois$A), z=mrois,
xlab = "Max # of Tests", ylab = "Initial Age", main="ROI Contour"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.