adj_inv_sinh_ci_or: Confidence interval for odds ratios

Description Usage Arguments Details Value References

View source: R/stats.R

Description

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

Usage

1
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

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.

Value

tbl. Data frame with odds ratio and CIs

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.


idea-labs/comsldpsy documentation built on April 14, 2020, 4:28 p.m.