ROR: Reporting Odds Ratio (ROR)

Description Usage Arguments Value

View source: R/ROR.R

Description

Determines the ROR for a collection of 2 x 2 tables of the form:

event not event
drug a c
not drug b d

In case the parameter alpha is set, it returns the lower endpoint of the 100(1 - α) percent confidence interval.

Usage

1
ROR(a, b, c, d, alpha = NULL)

Arguments

a

A vector with the counts of the upper left corner of the tables

b

A vector with the counts of the lower left corner of the tables

c

A vector with the counts of the upper right corner of the tables

d

A vector with the counts of the lower right corner of the tables

alpha

Value between (0,1). If set, the lower endpoint the confidence (or credible) interval is returned. (Default = NULL)

Value

The ROR or the lower endpoint of the confidence interval of the ROR


bips-hb/pvm documentation built on Dec. 14, 2020, 9:31 a.m.