Question
b. [2 pt] What statistical method can you use to determine which fertilizer is different and why is this method better than conducting many pairwise
b. [2 pt] What statistical method can you use to determine which fertilizer is different and why is this method better than conducting many pairwise tests? (hint: this can be easily done by adding a short statement to the above code)c. [1 pt] After using the method from part b, you find that fertilizer a, labeled fert_a in dataset, has a significantly different crop yield than the other fertilizers. You subset your data into crop_subset to include the variable fert_a which is the amount of fertilizer a (in ounces) and the corresponding crop_yield. You want to test whether there is a linear relationship between these 2 variables. Write the null and alternative hypotheses in the context of this problem.H0:Ha:d. [2 pts] You use R to fit a linear model of your data and assign it to an object called fit and find an intercept of 3.72 ounces and a slope of 1.696. You are given another dataframe, newdata = data.frame(fert_a = 150), to predict the crop yield for a fert_a value of 150 ounces. Calculate this crop yield by hand using your linear model and write the line of code that outputs the prediction interval.Prediction:Code:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started