## Example
## The mean prevalence of a disease/infection for the units within an area/region
## is thought to be 8%, 20%, 10%, 15% 20% , 22%, 10%, 2%, 2%, 4%, 5%,
## we are also confident that 90% of all units have a prevalence
## less or equal to 0.60 and we are 95% certain that it does not exceed 0.70
findbetamupsi_panel(
themean.vec = c(
0.4, 0.2, 0.1, 0.3,
0.4, 0.5, 0.1, 0.02, 0.04, 0.05
), psi.percentile = 0.90,
percentile.median = 0.60, percentile95value = 0.70
)
findbetamupsi_panel(
themean.vec = c(
0.4, 0.2, 0.1, 0.3,
0.4, 0.5, 0.1, 0.02, 0.04, 0.05
), psi.percentile = 0.90,
percentile.median = 0.60, percentile95value = 0.70,
root.method = "nleqslv"
)
Run the code above in your browser using DataLab