lird: Likelihood Interval for Risk Difference of 2-by-2 Contingency...

lirdR Documentation

Likelihood Interval for Risk Difference of 2-by-2 Contingency Table.

Description

Likelihood interval for risk difference of 2-by-2 contingency table. Likelihood function plot is also shown. For faster calculation speed, plot option '0' is recommended.

Arguments

exposure.O_event.O

a numeric vector of exposure (+) and event (+), 'a' of 2-by-2 table; mandatory

exposure.O_TOTAL

a numeric vector of exposure (+), 'a' + 'b' of 2-by-2 table; mandatory

exposure.X_event.O

a numeric vector of exposure (-) and event (-), 'c' of 2-by-2 table; mandatory

exposure.X_TOTAL

a numeric vector of exposure (-), 'c' + 'd' of 2-by-2 table; mandatory

conf.level

confidence level for the interval estimation

eps

machine epsilon value; default is 1e-08

k

cutoff value for likelihood interval. If not specified, F-test is used.

Value

demo

basic demographics of data

contin_2x2

2-by-2 contingency table

LI

estimated interval of risk difference by LI

CI

estimated interval of risk difference by CI

plot

likelihood-related plots

Author(s)

Kyun-Seop Bae <k@acr.kr>, Minkyu Kim <mkim@acr.kr>

Examples

  lird(21, 43, 16, 67)

inteli documentation built on May 24, 2026, 5:06 p.m.