Question: Data - 2 1 0 - Lecture - 1 - Homework.pdf Page of 2 ZOOM Lecture 1 : R Review & RMarkdown Homework Problems These
DataLectureHomework.pdf
Page
of
ZOOM
Lecture : R Review & RMarkdown
Homework Problems
These questions will assist in bolstering your understanding of the material in Lecture While you are encouraged to complete all of them on your own, you will only be required to submit one of them for grading if you want me to look over your other ones let me know Emphasis should be placed on having the correct codeoutput as well as communication. For each part, you should explain what you are doing as well as what the output is telling us Having just the codeoutput will not receive full credit. The deliverable should be a knitted RMarkdown document. Grading will use the EMRN rubric found in the syllabus.
Answer the following questions:
a Create a vector named "probl" which has the values:
b
c Display all values of "prob which are not within of the median and run a function to count how many meet this criterin
d Create a new vector called "probmult" which is made up of each element of "prob multiplied by it's index
c Display all values of "problmult" which are greater than times the mean of "prob
f Find the proportion of values in "probmult" which are greater than or equal to or equal to
Answer the following questions:
a Create a vector named "prob which has the values:
b Calculate the mean, median, and standard deviation value for the vector
c Display all values of "prob which are below the mean
d What proportion of values are within standard deviation of the mean?
e Find the zscore for each element and save it to a new vector called "probscore"
f Calculate the sum of the evenindexed elements for this vector do not type it out as dots but do it more elegantly so it can be scaled up for larger datasets
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
