ORsummary | R Documentation |
Prepares the Odds Ratio information from the oddsratio
function of the epitools
package and print it in export-ready format.
ORsummary(x)
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. |
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.
data(infert)
ORsummary(table(infert$education,infert$case))
ORsummary(infert$education,infert$case) ## another possible format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.