Cross Tabulation in R | Using the xtabs Function
17.2 هزار بار بازدید -
4 سال پیش
-
This tutorial demonstrates how to
This tutorial demonstrates how to perform cross tabulation in R using the xtabs function from base R, where cross-tabulation tables (i.e., contingency tables, cross tabs) display the frequencies (i.e., counts) of different combinations of categories/levels from two or more variables. Cross tabulation is a relatively simple process but serves as the foundation for the chi-square test of independence and allows for deriving insights through segmentation and understanding potential associations between categorical variables. Cross tabulation is often most useful when the variables involved have nominal or ordinal measurement scales.
Other videos from my "R for Beginners" playlist can be found here: R for Beginners. The videos in this playlist focus on simulated human resources (HR) data.
The data file(s) referenced in this R tutorial (and other R tutorials on this playlist) can be downloaded as a compressed (zipped) folder by visiting the following link: https://github.com/davidcaughlin/R-Tu.... Click "Clone or Download" followed by "Download ZIP".
Other videos from my "R for Beginners" playlist can be found here: R for Beginners. The videos in this playlist focus on simulated human resources (HR) data.
The data file(s) referenced in this R tutorial (and other R tutorials on this playlist) can be downloaded as a compressed (zipped) folder by visiting the following link: https://github.com/davidcaughlin/R-Tu.... Click "Clone or Download" followed by "Download ZIP".
4 سال پیش
در تاریخ 1399/10/10 منتشر شده
است.
17,215
بـار بازدید شده