Question: Hello, I have R programming questions. I need your help. Thank you so much. 1. (a) (b) (C) Load the media_spend.csv dataset into R and
Hello, I have R programming questions.
I need your help.
Thank you so much.


1. (a) (b) (C) Load the media_spend.csv dataset into R and save it to df. We are trying to see how the advertising effects sales, therefore, sales is our response variable and the other columns are our regressors. Plot the response variable (as the yaxis) against each of the regressor variables (one plot for each regressor). Use the par (mfrow = CO) function so that all the plots are displayed at once. Looking only at the plots, which type of advertising do you think will have the largest effect on sales? Perform a linear regression for each form of advertising vs the response variable, sales. Print out the summary for each of these regressions and take note of the pvalue for the ttest on the signicance of the coefcient for each. Which of the regressors is the most signicant? Create a vector of these pvalues and name each element with the corresponding type of advertising.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
