Description Usage Arguments Value See Also Examples
Calculates a Chi squared test between predicted yearly contributions to prevalence, and the observed values obtained from the registry, indicating whether the simulated prevalence values are accurate.
1 | test_prevalence_fit(object)
|
object |
A |
P-value from a chi-squared test of difference between prevalence prediction and counted prevalence at the index date.
Other prevalence functions:
prevalence()
1 2 3 4 5 6 7 8 9 10 11 12 | data(prevsim)
## Not run:
obj <- prevalence(Surv(time, status) ~ age(age) + sex(sex) + entry(entrydate) + event(eventdate),
data=prevsim, num_years_to_estimate = c(5, 10), population_size=1e6,
start = "2005-09-01",
num_reg_years = 8, cure = 5)
test_prevalence_fit(obj)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.