OR: Odds Ratio of two groups

View source: R/OR.R

ORR Documentation

Odds Ratio of two groups

Description

Odds Ratio between two groups

Usage

  OR(y1, n1, y2, n2, conf.level=0.95)

Arguments

y1

positive event count of test (the first) group

n1

total count of the test (the first) group

y2

positive event count of control (the second) group

n2

total count of control (the second) group

conf.level

confidence level

Details

It calculates odds ratio of two groups. No continuity correction here. If you need percent scale, multiply the output by 100.

Value

The result is a data.frame.

odd1

proportion from the first group

odd2

proportion from the second group

OR

odds ratio, odd1/odd2

SElog

standard error of log(OR)

lower

lower confidence limit of OR

upper

upper confidence limit of OR

Author(s)

Kyun-Seop Bae k@acr.kr

See Also

RD, RR, RDmn1, RRmn1, ORmn1, RDmn, RRmn, ORmn

Examples

  OR(104, 11037, 189, 11034) # no continuity correction

sasLM documentation built on Oct. 2, 2024, 9:06 a.m.