Use R for this problem(Code in R). A firm’s personnel officersampled 36 male and 24 female employees investigate allegationsthat the men in the organization tend to receive hire annualbonuses than the women. Their bonuses (as percentages of theirannual salaries) are below.
Men
10.4 | 8.9 | 11.7 | 12.0 | 8.7 | 9.4 | 9.8 | 9.0 | 9.2 | 9.7 |
9.1 | 8.8 | 7.9 | 9.9 | 10.0 | 10.1 | 9.0 | 11.4 | 8.7 | 9.6 |
9.2 | 9.7 | 8.9 | 9.3 | 10.4 | 11.9 | 9.0 | 12.0 | 9.6 | 9.2 |
9.9 | 9.0 | 9.2 | 9.4 | 9.7 | 8.9 | | | | |
Women
8.4 | 9.0 | 9.0 | 7.7 | 9.6 | 8.4 | 9.1 | 9.2 | 8.7 | 9.1 |
9.3 | 8.4 | 6.7 | 9.9 | 8.0 | 9.2 | 7.7 | 11.9 | 6.2 | 8.4 |
9.0 | 6.9 | 7.6 | 7.4 | | | | | | |
a) Check all necessary assumptions for running at-test for the difference between the two populations of bonuspercentages. If you need to, check normality with boxplots, normalprobability plots, ad.test(), and shapiro.test().
b) Can you pool in this situation Why or whynot
c) Write down the hypotheses to test given thepersonnel officer wants to know if there is evidence to concludethe men receive higher bonus percentages. Use R to run a t-testusing the t.test() function. Provide your code, output, andconclusion based on the p-value.