Description
Answer the 14 questions attached on the word file, using the R file attached. I have completed the first step which was to import a data set by downloading csv file and running first three lines. The following step is to answer the 14 mixed questions, some multiple choice, some multiple answers, and 3 questions need sentence answers or code written out. Lastly a completed progression of the R file based from the 13 question. (Question 14 asks for R file.)
Need help attaching R file, unable to do so here.
Unformatted Attachment Preview
Purchase answer to see full attachment
Explanation & Answer
Please find the final answer files attached. The word document has answers to the posted questions - The answers are highlighted in yellow for easy reference.The zip file has the R script and the code used to answer the questions in the word document. Some of the questions did not require any R code to answer. The R file has comments with question number reference for the code below it.If you have any doubts or queries or would you like any revisions or changes, please feel free to reach out to me. I will be happy to help you with any changes.Have a great day!!
Question 1
How many observations (or rows) and variables (or column) do we have in the dataset “chdData”?
Group of answer choices
Observations = 4240; Variables = 16
Observations = 4241; Variables = 16
Observations = 16; Variables = 4240
Observations = 16; Variables = 4241
Answer 1.
Observations = 4240; Variables = 16
Question 2
I want to inspect the first five rows of the data. Select the correct line of code?
Group of answer choices
View(chdData)
summary(chdData)
head(chdData))
head(chdData, 5)
Answer 2
head(chdData, 5)
Question 3
Based on medical experts, you learned that the following clinical variables are important to predict tenyear risk of coronary heart disease:
1- Age
2- Gender
3- Systolic blood pressure
4- Heart rate
5- Glucose
Please write a line of code to select the aforementioned variables? Store the output to a variable names
chdDataSelected. (Please note that for...