## Example 1
## Based on the available literature the mean value for the sensitivity of a test
## is expected to be 0.90 and we can be 95\% sure that it is higher than 0.80.
findbeta(
themean = 0.90, percentile = 0.95, lower.v = FALSE,
percentile.value = 0.80, seed = 280385, nsims = 10000
)
## Example 2
## Based on the available literature the median value for the specificity of a
## test is expected to be 0.99 and we can be 95\% sure that it is higher than 0.90.
findbeta(
themedian = 0.99, percentile = 0.95, lower.v = FALSE,
percentile.value = 0.90
)
##Example 3
##The most probable value (mode) for the prevalence of a disease/infection in a
##population is expected to be 0.15 and we are 90\% sure that it is less than 0.40.
findbeta(themode=0.15, percentile=0.90,lower.v=TRUE,
percentile.value=0.40)
Run the code above in your browser using DataLab