Question: I think I am doing something wrong. Do I need to add more code? 7. (2 pts) PlantGrowth is a dataset contained in R. You
I think I am doing something wrong. Do I need to add more code?

7. (2 pts) PlantGrowth is a dataset contained in R. You can refer to the R help document for its information. The following code performs a t-test to compare two vectors, ctrl (the plant yield in the control group) and trt2 (the plant yield in the treatment group). Run the code and interpret the output, assuming significance threshold 0.05 (see Lec6 slides for t-test). data("PlantGrowth") ctrl = PlantGrowth$weight [PlantGrowth$group =="ctrl"] trt2 = PlantGrowth$weight [PlantGrowth$group =="trt2"] t. test (ctrl, trt2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
