Cross Tabulation in R | Using the xtabs Function

Поділитися
Вставка
  • Опубліковано 29 гру 2020
  • 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: github.com/dav.... Click "Clone or Download" followed by "Download ZIP".

КОМЕНТАРІ •