Usethe Happy data filefromthe2018GeneralSocialSurveyatthetextwebsitetoforma contingencytablethatcrossclassifieshappinesswithgender.For H0: independencebetween happiness andgender: (a) Conductandinterpretthechi-squaredtest. (b) Showtheestimatedexpectedfrequenciesandstandardizedresiduals,andformamosaic plot. Explainhowtheyareconsistentwiththeresultofthechi-squaredtest.

Question:

Usethe Happy data filefromthe2018GeneralSocialSurveyatthetextwebsitetoforma contingencytablethatcrossclassifieshappinesswithgender.For H0: independencebetween happiness andgender:

(a) Conductandinterpretthechi-squaredtest.

(b) Showtheestimatedexpectedfrequenciesandstandardizedresiduals,andformamosaic plot. Explainhowtheyareconsistentwiththeresultofthechi-squaredtest.

Step by Step Answer:

Question Posted: