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:
Related Book For
Foundations Of Statistics For Data Scientists With R And Python
ISBN: 9780367748456
1st Edition
Authors: Alan Agresti
Question Posted: