Adjusted_inv_sinh_CI_OR_2x2: The adjusted inverse hyperbolic sine confidence interval for...

Description Usage Arguments Examples

View source: R/Adjusted_inv_sinh_CI_OR_2x2.R

Description

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

Described in Chapter 4 "The 2x2 Table"

Usage

1
2
3
4
5
6
7
Adjusted_inv_sinh_CI_OR_2x2(
  n,
  psi1 = 0.45,
  psi2 = 0.25,
  alpha = 0.05,
  printresults = TRUE
)

Arguments

n

the observed counts (a 2x2 matrix)

psi1

pseudo-frequency (should be > 0)

psi2

pseudo-frequency (should be > 0)

alpha

the nominal level, e.g. 0.05 for 95% CIs

printresults

display results (F = no, T = yes)

Examples

1
2
3
4
5
6
7
8
load_chapter(4)
# A case-control study of GADA exposure on IPEX syndrome (Lampasona et al., 2013)
n <- matrix(c(9,4,4,10), nrow=2, byrow=TRUE)
Adjusted_inv_sinh_CI_OR_2x2(n)
# The association between CHRNA4 genotype and XFS (Ritland et al., 2007)
n <- matrix(c(0,16,15,57), nrow=2, byrow=TRUE)
Adjusted_inv_sinh_CI_OR_2x2(n)
unload_chapter(4)

ocbe-uio/contingencytables documentation built on March 7, 2021, 3:44 p.m.