In: Math
I need this in R code please: Use the dataset ’juul’ in package ’ISwR’ to answer the question. (1) Conduct one-way ANOVA test to test if the mean of igf1 of each level of tanner are the same? (2) What is the mean of igf1 in each level of tanner? (3) If there is any difference, which ones appear to be different? (Use pairwise t test for each pair of level with bonferroni method)
1) From the given information, ANOVA table is created in R, the output is
since P-value = 0.000 < alpha 0.05 so we reject H0
Thus we conclude that there is significance difference at least two levels of means
2) Pairwise comparison:
Since p-value of (c and d) and (e and c) > 0.05 and p-value of all other pairs are < 0.05
Therefore, there is significance difference between means of the levels of c and d also e and c