logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Santosh DevgodaMathematics
(5/5)

825 Answers

Hire Me
expert
Robin HunterGeneral article writing
(5/5)

982 Answers

Hire Me
expert
Mahima VatsAccounting
(/5)

990 Answers

Hire Me
expert
Joel FordFinance
(5/5)

607 Answers

Hire Me
R Programming
(5/5)

transform each element to be the natural log of the original value times its position in the vector

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Question 8

Create a bar graph to show the sum of sales grouped by months using “monSal” provided in

question 13. Your bar graph should have:

• "Month" as the label for the x-axis,

• "Total Sales" as the label for the y-axis,

• "Total Sales of Each Month in 2019" as the label for the graph

• Names for each of the bars according to their factor ordered chronologically (this is

discussed in a video and uses one simple option in your plotting command)

Question 9

Create a histogram using sales from “monSal” provided in question 13. Your histogram should

have:

• "Sales" as the label for the x-axis and

• "Histogram of Sales in 2019" as the label for the graph.

Question 10

Import the file attached to this quiz, named “Q10.csv” into R, while assigning it to the new

variable named “Q10”

Assume that the first column is X and the second column is Y.

In either way discussed in the videos, calculate the R2

value and save it to the new object “D”

(I’m also surprised that I hadn’t used that variable name yet!)

Question 11

Run an ordinary linear regression of the variable Y on X and assign this model to the variable

“XY”. Save the following objects with the names indicated in quotations, while being sure to

round your answers to the 3rd decimal digit: [Note: you can round them by yourself. You do not

need to run a code for it]

• “Ixy” = The intercept value

• “Bxy” = The coefficient on the covariate

• “CCxy” = The correlation coefficient

Question 12

Create a scatterplot using the data from the previous question that has:

• X on its horizontal axis, labeled "Regressor"

• Y on its vertical axis, labeled "Regressand"

• Graph labeled "Simple Linear Regression Model"

• A red regression line

Question 13

Create a vector with forty elements: starting with 2.8 to 18.4 with increments of 0.4 (each

element is 0.4 greater than the element before it). Assign this vector to the variable “J”.

Create a for loop named “loop13” to transform each element to be the natural log of the original

value times its position in the vector. For example, the last element should be transformed into

ln(18.4×40)=6.60123 and the first element should be transformed into ln(2.8×1)= 1.029619 –

save this new vector of transformed values to “Jnew” (don’t forget the help function, ?)

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme