Computes the adjusted inverse hyperbolic sine confidence interval for the odds ratio.

adj_inv_sinh_ci_or(data, x, y, psi1 = 0.6, psi2 = 0.4, alpha = 0.05)

Arguments

data

tbl. Input data

x, y

character. Variable names

psi1, psi2

double. Pseudo-frequencies (both should be > 0), Default: 0.6, 0.4

alpha

double. The nominal level, Default: 0.05

Value

tbl. Data frame with odds ratio and CIs

Details

Procedure as described in Fagerland & Newcombe (2013) and Fagerland, Lydersen, & Laake (2017).

The function is an adaptation of the Matlab script provided by Fagerland et al. (2017) on the book's website.

References

Fagerland, M., Lydersen, S., & Laake, P. (2017). Statistical analysis of contingency tables. London: Chapman and Hall.

Fagerland, M. W., & Newcombe, R. G. (2013). Confidence intervals for odds ratio and relative risk based on the inverse hyperbolic sine transformation. Statistics in Medicine, 32(16), 2823–2836.