rrci: Compute relative risk with approximate confidence intervals

Description Usage Arguments Details

View source: R/nonxgboost.R

Description

Compute relative risk with approximate confidence intervals

Usage

1
rrci(x, nx, y, ny, alpha = 0.05, method = "Jeffreys")

Arguments

x

The number of success in the first group

nx

The number of observations in the first group

y

The number of success in the second group

ny

The number of observations in the second group

alpha

Determines the confidence level. Defaults to alpha=c(0.5, 0.1) and both 90% and 50% intervals are produced.

method

Character string giving the method. Allowable options are method="MLE" and method="Jeffreys".(the default). It isn't case-sensitive

Details

If method="Jeffreys" (the default), the function adds 1/2 to the numerator and 1 to the denominator when estimating the proporions of successes in each group, thus avoiding infinite values. Then, estimate the standard error of the log relative risks, compute the confidence intervals, and transform back to the original scale.


harrysouthworth/mhdm documentation built on Feb. 4, 2022, 12:25 a.m.