In: Statistics and Probability
Work these in R.
Using library(resampledata) and the dataset Spruce to conduct a
test to see if the mean difference in how much the seedling grew
(in height) over the course of the study under these two treatments
are significantly different from each other. Answer the
following:
a) Set up a hypothesis using appropriate notation.
b)Find the value of the observed test statistic using R.
c)Compute the P-value of the observed test statistic using a
permutation distribution with N= 10^5-1.
If possible please use comments in your code to make it easier to study.
Thanks a lot!