Question: Please help. Make sure this codes work on RSTUDIOS. I kinda know that for 2a, t= 1.9153, df= 55.309, P-value= 0.06063, and we need to
Please help. Make sure this codes work on RSTUDIOS. I kinda know that for 2a, t= 1.9153, df= 55.309, P-value= 0.06063, and we need to use <- t.test(Len~supp, data= ToothGrowth), and 2b is Z= 1.8734, P-value= 0.06102(not 100% sure about 2b). I was wondering if you can show me how this is the case, or how you would answer this question correctly. Please let me know and show work. Thank you.
The built-in dataset ToothGrowth can be accessed in R by typing ToothGrowth. It contains 60 measurements of tooth growth ("len") in guinea pigs during an experiment in
1
which the guinea pigs received vitamin C. One factor in the experiment ("supp") was whether the guinea pigs received vitamin C from orange juice ("OJ") or as an ascorbic acid supplement ("VC"). (There is another column, "dose," but you will not use it in this problem.)
a) (4 points) Conduct a -test of the null hypothesis that orange juice vs. ascorbic acid supplement leads to no expected difference in tooth growth. Report the test statistic and -value, and state your conclusion.
b) (10 points) Conduct a permutation test of the null hypothesis that the distribution of tooth growth does not depend on the supplementation strategy (OJ vs. VC). Report a -value and state your conclusion.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

Study Help