ORsummary: ORsummary

View source: R/ORsummary.R

ORsummaryR Documentation

ORsummary

Description

Prepares the Odds Ratio information from the oddsratio function of the epitools package and print it in export-ready format.

Usage

ORsummary(x)

Arguments

x

input data can be one of the following: r x 2 table, vector of numbers from a contigency table (will be transformed into r x 2 table in row-wise order), or single factor or character vector that will be combined with y into a table.

...

further arguments passed to or from other methods.

Value

A matrix with a summary statistics. Specifically the function returns the percentatges of the contigency table, the marginal frecuency, the odds ratio and the p values.

Examples

data(infert)

ORsummary(table(infert$education,infert$case))
ORsummary(infert$education,infert$case) ## another possible format


douve/UEMR documentation built on July 3, 2024, 12:43 a.m.