Question

Use the following commands to install the `marketing` dataset and load the `datarium` package into your...

Use the following commands to install the `marketing` dataset and load the `datarium` package into your session.
```{r}
#install.packages("datarium")
library(datarium)
data("marketing", package = "datarium")
str(marketing)

Use the regression line to predict the `Sales` amount when `newspaper` budget is `$136.80K` and `facebook` is `$43.92K`.

This should be done in Rstudio 3.6.1

Homework Answers

Answer #1

R script

install.packages("datarium")
library(datarium)
data("marketing", package = "datarium")
str(marketing)
y=marketing$sales
x1=marketing$facebook #taken facebook and newspaper only since youtube is not mentioned in question
x2=marketing$newspaper
p=lm(y~x1+x2)
p

result:

predicted model:

y=11.026705+0.199045* x1+0.006644* x2

Sales` amount when `newspaper` budget is `$136.80K` and `facebook` is $43.92K`

=11.026705+0.199045*$43.92K+0.006644* $136.80K

=$20.67766K

sales=$20.67766K

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
I am using forecast package for time series analysis. I have a dataset with hourly data...
I am using forecast package for time series analysis. I have a dataset with hourly data from oct 3 2016 to oct 23 2016. I used the following code to convert my data into a time series object. Dataset is about citibike stations I’m only using 6 stations I’m not sure if Im supposed to use my time column or include my time column. This is what i have so far. data.ts <- ts(CitiBike[,2:7], freq = 504, start = 2016)...
Built in Data In R: This Question uses "cystfibr" data found in "ISwR" package. to access...
Built in Data In R: This Question uses "cystfibr" data found in "ISwR" package. to access this data you need to first install "ISwR" package. then load the library. Type data() to check which built in data are in the package "ISwR". This should show all the available built in data as: We use nickel data for this part. Type >cystfibr to see the data, and then answer the following questions using the data: (a) type ?cystfibr this will open...
R work (must be done in R) Copy and paste your R code and output into...
R work (must be done in R) Copy and paste your R code and output into a word document, along with your written answers to the questions. Follow these instructions to import the necessary dataset:  Before opening the dataset needed for this problem, you’ll need to call the “car” package. Run the following line of code: > library(car)  Now you can import the “ States” dataset and use it to answer the question below. Name the data frame...
Use the following dataset and answer the following questions. x 6 15 9 21 20 18...
Use the following dataset and answer the following questions. x 6 15 9 21 20 18 y 16 25 20 35 40 29 Please do problems (b), and (c) BY HAND. You may use your calculator. a) The following scatter diagram has been taken from Minitab for the above data. What does the above scatter diagram indicate about the relationship between the two variables? b) Find the intercept of the estimated regression equation (b0). c) Find the slope of the...
Use the following dataset for the next four questions: X:     5     3     6     3     4     4    ...
Use the following dataset for the next four questions: X:     5     3     6     3     4     4     6     8 Y:    13    15    7    12    13    11    9    5 1. (3 points) What is the correlation value “r”? a. -0.98 b. -0.89 c. 0.89 d. None of the above 2. (3 points) Is the “r” signifcant at alpha = 0.05? (circle one)     Yes     No 3. (4 points) Identify the regression equation below (note: Y is the dependent variable): a. Y = 19.12...
Find the regression line for the following set of data, where r= −0.959 and use it...
Find the regression line for the following set of data, where r= −0.959 and use it to predict the crash fatality rate when lemon imports is 500. Lemon imports (x) 230 265 358 480 530 x̄=372.6 Sx=130.8 Crash fatality rates (y) 15.9 15.7 15.4 15.3 14.9 x̄=15.44 Sx=0.385 Critical Values: z0.005 = 2.575, z0.01 = 2.325, z0.025 = 1.96, z0.05 = 1.645 When d.f.=6: t0.005 = 3.707, t0.01 = 3.143, t0.025 = 2.447, t0.05 = 1.943 When d.f.=9: t0.005 =...
Answer the following questions from the information below a. What are the organization's marketing goals? b....
Answer the following questions from the information below a. What are the organization's marketing goals? b. What are the symptoms of the problem? In other words, which of the organization's marketing goals mentioned in section a., above are not being met? c. What is the organization's problem? Look at the symptoms and make a judgement about what their cause may be. Do not confuse symptoms with problems. Problems cause symptoms. d. Perform a SW/OT analysis: -What are the organization's internal...
Questions 1 through 6 work with the length of the sidereal year vs. distance from the...
Questions 1 through 6 work with the length of the sidereal year vs. distance from the sun. The table of data is shown below. Planet Distance from Sun (in millions of miles) Years (as a fraction of Earth years) ln(Dist) ln(Year) Mercury 36.19 0.2410 3.5889 -1.4229 Venus 67.63 0.6156 4.2140 -0.4851 Earth 93.50 1.0007 4.5380 0.0007 Mars 142.46 1.8821 4.9591 0.6324 Jupiter 486.46 11.8704 6.1871 2.4741 Saturn 893.38 29.4580 6.7950 3.3830 Uranus 1,794.37 84.0100 7.4924 4.4309 Neptune 2,815.19 164.7800 7.9428...
As CEO of Ocean World​, Rita Greenwood knows it is important to control costs and to...
As CEO of Ocean World​, Rita Greenwood knows it is important to control costs and to respond quickly to changes in the highly competitive​ boat-building industry. When DMG Consulting proposes that Ocean World invest in an ERP​ system, she forms a team to evaluate the​ proposal: the plant​ engineer, the plant​ foreman, the systems​ specialist, the human resources​ director, the marketing director, and the management accountant. A month​ later, management accountant Marcus Chumura reports that the team and DMG estimate...
1.    In a multiple regression model, the following coefficients were obtained: b0 = -10      b1 =...
1.    In a multiple regression model, the following coefficients were obtained: b0 = -10      b1 = 4.5     b2 = -6.0 a.    Write the equation of the estimated multiple regression model. (3 pts) b     Suppose a sample of 25 observations produces this result, SSE = 480. What is the estimated standard error of the estimate? (5 pts) 2.    Consider the following estimated sample regression equation: Y = 12 + 6X1 -- 3 X2 Determine which of the following statements are true,...