Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
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...
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.