Can you please tell me what more information I needto provide to solve below problem?
1. Find out below using R
Hints: Use iris dataset from R (built in data set inR)
a) Create a new data frame called virginica.versicolor(that only contains these two species)
the command I used:
virginica.versicolor <- iris[iris$Species %in%c(\"versicolor\", \"virginica\"), ]
b) What is your null hypothesis regarding sepal lengths for thetwo species (virginica.versicolor) ? And what isyour alternate hypothesis?
c) Describe your hypotheses in terms of your test statistic:what would be the t under the null hypothesis,H0, and what would be the statement aboutt under your alternate hypothesis Ha?
d) Would you do a one- or non-(i.e., two-sided) directionaltest? Why?
e) Conduct a Student’s t-test usingthe formula format as follows:
t.test(sepal.length ~ species, data = virginica.versicolor,var.equal = T).
f) Explain what the three different sections do within thet.test() function.
g) Did your function run a one- or non-directional test?
h) What is your t-value? Based on the results of your t-test,what is your conclusion and why?