# NOT RUN {
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)
m2010lh
with(m2010lh,
plot(A, p0_2p*100, type="l",
xlab="Age", ylab="%", ylim = c(0, 100),
main="Individuals w/ No Infections,\nbut that will have 2"
)
)
# }
Run the code above in your browser using DataLab