Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored 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