Description Usage Arguments Value Examples
View source: R/freedom_functions_1.R
Calculates the discounted prior probability of disease freedom, after adjusting for the probability of disease exceeding the design prevalence during the time period of the surveillance data being analysed
1 | disc.prior(prior, p.intro)
|
prior |
prior probability of freedom before surveillance |
p.intro |
probability of introduction (or of prevalence exceeding the design prevalence) during the time period (scalar or vector equal length to prior) |
vector of discounted prior probabilities of freedom
1 2 3 4 | # examples for disc.prior
disc.prior(0.5, 0.01)
disc.prior(0.95, c(0.001, 0.005, 0.01, 0.02, 0.05))
disc.prior(c(0.5, 0.6, 0.7, 0.8, 0.9, 0.95), 0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.