Description Usage Arguments Details Author(s) See Also Examples
xtab
generates cross tabulation of two variables.
1 |
x |
a factor object |
y |
a factor object |
data |
a data frame object (Optional) |
row.pct |
a logical value: if NULL, a default table without any percentages is produced. If TRUE, row percentages are shown and if FALSE, column percentages. |
na.rm |
A logical value to specify missing values, <NA> in the table |
rnd |
specify rounding of numbers. See |
Exploring data before jumping into complex analysis is always a necessity. The first step of an analysis is always to summarize and display data.
tab
produce two-way table of frequencies
References:
Essential Medical Statistics, Betty R. Kirkwood & Jonathan A.C. Sterne, Second Edition. Chapter 3
An Introduction to MEdical Statistics, Martin Bland, Thrid Edition, Chapter 4
Myo Minn Oo (Email: dr.myominnoo@gmail.com | Website: https://myominnoo.github.io/)
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.