Question Description
I’m working on a r question and need an explanation to help me understand better.
Copy the Comments below into an R script. .Run your Script and copy your code solution as illustrate as directed below in item A-4.Upload you project in the M5 Project assignment in Module 6.
#REFERENCES
#Ref: https://www.statmethods.net/advgraphs/ggplot2.html
#Ref: https://www.datanovia.com/en/blog/ggplot-point-sha…
#Ref: http://environmentalcomputing.net/plotting-with-gg…
#Ref: Andy Fields: Discovering Statistics Using R
#Ref: R Kabacoff: R in Action
#DIRECTIONS
#After each numbered item, Copy the comment and then your solution onto THIS Project Specification Sheet.#See Item A-4 as an example.
#A-1 LOAD DATA SET: <. Album Sales 2.dat > & display the first 6 records
#A-2 EXPLORE the DATA SET: List the names of the 4 variables then display the dimensions of the dataset. Finally display the basics quartile statistics of the 4 variables,
#A-3 CREATE the LINEAR REGRESSION MODEL of Sales vs Advertisements. Save the model as an R object named< albumSales.3ad >
#A-4 What is the CORRELATION COEFFICIENT between Advertisements and Album sales. Save the value as an object named< r >
r <- cor(sales, adverts)
> r
[1] 0.5784877
#A-5 Display the 3 most basic DESCRIPTIVE STATISTICSD for Sales and Advertisements
#A-6 What is the COEFFICIENT OF DETERMINATION of Advertisements vs Sales
#A-7 Compute Total Sum of Squares from a mathematics basic formula
#A-8 Compute the Residual Sum of Squares from a mathematical formula
#A-9 Display the intercept and slope of the regression line of Sales vs Advertisements
#A10 Create the regression line equation (eg y = a + bx) and display the y coordinate at x = 500
#A-11 Create a plot identical to that which is shown: REPLACE THIS IMAGE WITH YOUR PLOT ANNOTATED WITH YOUR NAME AND CHANGE THE REGRESSION LINE TO RED AND THE ORANGE TRIANGLE TO BLUE Replace the Professor’s last name with your own.