Chi-square Test Assignment
February 18th, 2020
Use “margin.table” to get the Titanic marginal table for factors 1 (class of accommodations) and 4 (survival).
Apply the chi-square test to see if class and survival are dependent. Do it both by hand and with “chisq.test” in R.