Uploaded December 2018 | Updated November 2026, 3 hours ago
In this video I show you how to use R to calculate three common statistical tests for categorical variables. The chi-squared goodness of fit test, the chi-squared test of independence, and Fisher's exact test.
The goodness of fit tests is for a single categorical variable (or discrete variable if only the counts of the sample space elements are considered). If compares the actual counts of the sample space elements against a given suspected count.
The chi-squared test of independence test and Fisher's exact test looks for dependence between two categorical variables.
As usual, the yo can find the HTML rendered page on RPubs at rpubs.com/juanhklopper/tests_for_categorical_variables
You can find the RMD file on GitHub at github.com/juanklopper/R_statistics
In this video I show you how to use R to calculate three common statistical tests for categorical variables. The chi-squared goodness of fit test, the chi-squared test of independence, and Fisher's exact test.
The goodness of fit tests is for a single categorical variable (or discrete variable if only the counts of the sample space elements are considered). If compares the actual counts of the sample space elements against a given suspected count.
The chi-squared test of independence test and Fisher's exact test looks for dependence between two categorical variables.
As usual, the yo can find the HTML rendered page on RPubs at rpubs.com/juanhklopper/tests_for_categorical_variables
You can find the RMD file on GitHub at github.com/juanklopper/R_statistics










