oddsratio {fmsb}R Documentation

Calculate odds ratio and its confidence intervals

Description

Calculate odds ratio and its confidence intervals based on approximation, followed by null-hypothesis (odds ratio equals to 1) testing.

Usage

 oddsratio(a, b, c, d, conf.level=0.95) 

Arguments

a

The number of individuals who both suffer from exposure and disease.

b

The number of individuals who suffer from disesase but not exposed.

c

The number of individuals who suffer from exposure but are healthy.

d

The number of individuals who neither suffered from exposure nor disease.

conf.level

Probability for confidence intervals. Default is 0.95.

Value

estimate

Calculated point estimate of odds ratio.

conf.int

A numeric vector of length 2 to give upper/lower limit of confidence intervals.

p.value

The significant probability as the result of null-hypothesis testing.

Author(s)

Minato Nakazawa (minato-nakazawa[atmark]umin.net)

Examples

 res <- oddsratio(5,10,85,80)
 str(res)
 print(res)

[Package fmsb Index]