| getIncidence | R Documentation | 
Calculate annual HIV incidence rates using the single random-point approach and multiple imputation.
getIncidence(Args = setArgs(), sformula = "", aggFun = NULL, newdata = NULL)
| Args | takes list from  | 
| sformula | A list of formulas for the poisson regression models. Default is: "sero_event ~ -1 + as.factor(Year) + Age + as.factor(Year):Age + offset(log(tscale))" | 
| aggFun | Function to aggregate sero events and person-time by, see  | 
| newdata | Dataset of variables to predict incidence, see  | 
list
Args <- setArgs(Age=list(All=c(15, 49)), Years=c(2004:2018), nSim=2)
age_dat <- getAgeYear(dat=setHIV(Args))
sformula = "sero_event ~ -1 + as.factor(Year) + Age + as.factor(Year):Age + offset(log(tscale))"
getIncidence(Args, sformula, AggByYear, age_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.