# NOT RUN {
data(prevsim)
# }
# NOT RUN {
prevalence_simulated(Surv(prevsim$time, prevsim$status), prevsim$age,
prevsim$sex, prevsim$entrydate,
num_years_to_estimate = 10,
index_date = "2013-09-01",
num_reg_years = 8, cure = 5)
prevalence_simulated(Surv(prevsim$time, prevsim$status), prevsim$age,
prevsim$sex, prevsim$entrydate,
num_years_to_estimate = 5,
index_date="2009-01-01",
num_reg_years=5)
# The program can be run using parallel processing.
prevalence_simulated(Surv(prevsim$time, prevsim$status), prevsim$age,
prevsim$sex, prevsim$entrydate,
num_years_to_estimate = 10,
index_date="2013-01-01",
num_reg_years=8, n_cores=4)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab