Description Usage Arguments Value Author(s) References See Also Examples
epitable
Display a cross tabulation of two variables optionnaly with
row or col percentages. Chi Square with associated p.value are calculated.
If table contain binary variable, then epiorder function is apply on the two variable
to get a resulting table compatible with usual epidemiology interpretation.
0/1 variables are transformed into Yes/No and Yes is displayed before No
Exposed Cases appear on upper left part of the table.
1 |
out |
"Outcome" as numbers, factors or text |
exp |
"Exposure" as numbers, factors or text. short syntax is available see help(epifield) |
missing |
Boolean if FALSE, missing are not included in the table. A summary output of number of missing values is added at the end |
row |
"Row percentages" |
col |
"Col percentages" |
fisher |
TRUE by default, display the fisher exact probability. If table is larger than 2*2 then Fisher is not calculated |
An array containing values of ...
Gilles Desve
Based on: Epi6 and Stata functionnality, available at https://github.com/.
freq
for frequency distributions
1 | #' epitable(c(1,1,2,2,1),c(3,3,4,4,4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.