CHAPTER 9
To get you started, we'll go through four popular statistical tests: chi-squared, t-test, correlation, and regression, as well as a method for extracting the data you need. My new Tauntaun dataset must be loaded into R for all of the analyses in this exercise. . Remember that we're working with data that has been "super-cleaned, combined, etc." and is saved as an.RDS file.Our first test, the chi-squared test, is a straightforward method for analyzing categorical results with any number of categories. For example, you can use this test to see if Tauntaun fur length (short, medium, long) and fur color (grey, white) are related (or dependent) on one another. That is to say, the probability of a specific Tauntaun fur color depends on the length of its fur; and vice versa, the likelihood of a particular fur color depends on the length of its fur.Now, the purpose of the chi-squared test is to determine if gender and party are INDEPENDENT of each other. The chi-squared test ...