local.odds: Local Odds Ratio

Description Usage Arguments Value Examples

View source: R/218LocalOddsRatio.R

Description

Calculates the local odds ratios for an inputted I x J table

Usage

1

Arguments

tab

An I x J contingency table passed through table().

Value

local.odds() returns a matrix of the local odds ratios for the provided table

Examples

1
2
3
4
# make some table (for the purposes of this example, 3x3)
table <- matrix(c(5134,2829,5661,3946,715,4588), nrow=2, ncol=2, byrow=TRUE)
# then pass it through local.odds to examine the association between adjacent cells
local.odds(table)

ESunRoc/STT218 documentation built on Jan. 14, 2020, 2:39 a.m.