## Example
## The mean prevalence of a disease/infection for the units within an area/region
## is thought to be 0.20 and we are 99% confident that it is not more than 0.40.
## Within this area, we are also confident that 90% of all units have a prevalence
## less or equal to 0.50 and we are 95% certain that it does not exceed 0.60
res1 <- findbetamupsi(
themean = 0.20, percentile = 0.99,
lower.v = TRUE, percentile.value = 0.30, psi.percentile = 0.90,
percentile.median = 0.50, percentile95value = 0.60
)
res2 <- findbetamupsi(
themean = 0.20, percentile = 0.99,
lower.v = TRUE, percentile.value = 0.30, psi.percentile = 0.90,
percentile.median = 0.50, percentile95value = 0.60,
root.method = "nleqslv"
)
res1
res2
Run the code above in your browser using DataLab