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?

I think I am doing something wrong. Do I need to add

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!