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
Write a program using K-Means and Expectation Maximization clustering for the given dataset. Use R language...
Write a program using K-Means and Expectation Maximization clustering for the given dataset. Use R language to write the code. Package Name: cluster.datasets install.packages("cluster.datasets") library(cluster.datasets) data(paste your data set name) your dataset name data(mammal.dentition) K-Means Clustering Find optimal number of clusters using Elbow Method and then Apply K-Means clustering. Finally do visualization for K-Means Clustering Expectation Maximization Clustering Q1: Apply Expectation Maximization Q2: Visualization for Expectation Maximization https://www.rdocumentation.org/packages/cluster.datasets/versions/1.0-1/topics/mammal.dentition I have done the K-means part do the second one
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...
Urban Elite Cosmetics has used a traditional cost accounting system to apply quality-control costs uniformly to...
Urban Elite Cosmetics has used a traditional cost accounting system to apply quality-control costs uniformly to all products at a rate of 18 percent of direct-labor cost. Monthly direct-labor cost for Satin Sheen makeup is $111,000. In an attempt to more equitably distribute quality-control costs, management is considering activity-based costing. The monthly data shown in the following chart have been gathered for Satin Sheen makeup. Activity Cost Pool Cost Driver Pool Rates Quantity of Driver for Satin Sheen Incoming material...
1. For a pair of sample x- and y-values, what is the difference between the observed...
1. For a pair of sample x- and y-values, what is the difference between the observed value of y and the predicted value of y? a) An outlier b) The explanatory variable c) A residual d) The response variable 2. Which of the following statements is false: a) The correlation coefficient is unitless. b) A correlation coefficient of 0.62 suggests a stronger correlation than a correlation coefficient of -0.82. c) The correlation coefficient, r, is always between -1 and 1....
Analysis: This section should include the issue register as a bare minimum, but may include also...
Analysis: This section should include the issue register as a bare minimum, but may include also why-why diagrams, a Pareto chart, a waste table and/or value-added analysis table. Flow analysis or simulation of this case study might be possible but might require making a lot of assumptions given the provided data. The first part of the project: Introduction    Walmart has continued to retain the top position on the Fortune 500 list for a consecutive fifth year. The brand has...
/* myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following...
/* myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following tables: VENDOR, PRODUCT, CUSTOMER, INVOICE, LINE EMPLOYEE and loads the default data rows */ set echo on; set serveroutput on; select systimestamp from dual; show user; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'; DROP TABLE LINE CASCADE CONSTRAINTS; DROP TABLE INVOICE CASCADE CONSTRAINTS; DROP TABLE CUSTOMER CASCADE CONSTRAINTS; DROP TABLE PRODUCT CASCADE CONSTRAINTS; DROP TABLE VENDOR CASCADE CONSTRAINTS; DROP TABLE EMPLOYEE CASCADE CONSTRAINTS; CREATE TABLE...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From the April 2004 Issue Save Share 8.95 In 1991, Progressive Insurance, an automobile insurer based in Mayfield Village, Ohio, had approximately $1.3 billion in sales. By 2002, that figure had grown to $9.5 billion. What fashionable strategies did Progressive employ to achieve sevenfold growth in just over a decade? Was it positioned in a high-growth industry? Hardly. Auto insurance is a mature, 100-year-old industry...
In February 2012, the Pepsi Next product was launched into the US market. This case study...
In February 2012, the Pepsi Next product was launched into the US market. This case study provides students with an interesting insight into PepsiCo’s new product process and some of the challenging decisions that they faced along the way. Pepsi Next Case Study Introduction Pepsi Next was launched by PepsiCo into the US market in February 2012, and has since been rolled out to various international markets (for instance, it was launched in Australia in September 2012). The new product...
Asia’s e-commerce landscape has been booming in recent years. The swift adoption of smartphones and greater...
Asia’s e-commerce landscape has been booming in recent years. The swift adoption of smartphones and greater access to the internet has allowed consumers in the region to be a major force in the global digital economy. The expansion looks set to continue at a rapid pace. According to a November 2018 report by Fitch Solutions, e-commerce sales in the region are forecast to increase by 14.2% this year, with an estimated average annual increase of 14% over the medium term...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT