lird: 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.
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
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
plot
likelihood function plots by LI; default is "all". 'OBJ', 'O1', '1' is objective function plot; 'OFV', 'O2', '2' is log likelihood function plot; 'LRT', 'O3', '3' is log LRT function plot.
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.
Author
Kyun-Seop Bae <k@acr.kr>, Minkyu Kim <mkim@acr.kr>