orci.bayes {PropCIs} | R Documentation |
Bayesian tail confidence interval for an odds ratio
Description
Approximate Bayesian tail confidence interval for an odds ratio using simulation method
Usage
orci.bayes(x1,n1,x2,n2,a,b,c,d,conf.level, nsim)
Arguments
x1 |
Binomial variate group 1 |
n1 |
Sample size group 1 |
x2 |
Binomial variate group 2 |
n2 |
Sample size group 2 |
a |
beta prior for x1 |
b |
beta prior for x2 |
c |
beta prior for n1 |
d |
beta prior for n2 |
conf.level |
confidence level |
nsim |
number of simulations with default 10M |
Value
Confidence interval for an odds ratio with given confidence level.
References
Agresti, A. (2002) Categorical Data Analysis. Wiley, 2nd Edition.
[Package PropCIs version 0.3-0 Index]