# STAD29 / STA 1007 assignment 1

(f) (2 marks) Which of your two confidence intervals is longer? Explain briefly why that is not surprising. 3. Work through, or at least read, chapter 16 of PASIAS. 4. Coronary heart disease affects many people. Is there an association between a person having significant evidence of coronary heart disease and the person’s age? 100 subjects were selected to participate in a study. For each person these four things were recorded: • an ID for that person (which we ignore) • the person’s actual age, to the nearest year • the “age group” in which the person falls • whether the person has “significant evidence of coronary heart disease” (“Yes”) or not (“No”). The data are at http://www.utsc.utoronto.ca/~butler/d29/chdage.csv as a CSV file. (a) (2 marks) Read in and display (at least some of) the data. To make the next part easier, call your data frame heart. (b) (2 marks) I wanted to have you plot the proportion of people in each age group that have significant symptoms against age group. This turns out to be a bit fiddly, but this code does it. Replace the initial data frame with whatever name you gave to the data frame you read in from the file (if you called it something different): heart %>% group_by(agegrp, chd) %>% summarize(n=n()) %>% spread(chd,n) %>% mutate(proportion=Yes/(Yes+No)) %>% ggplot(aes(x=agegrp, y=proportion))+geom_col() Run this code (by typing it or copy-pasting it). What does your graph tell you about how the likelihood of having symptoms depends on age? Explain briefly. (c) (2 marks) Fit a logistic regression predicting presence or absence of coronary heart disease from the (actual) age. Use the data frame you read in from the file, and display the results. (d) (3 marks) Is there a significant association between age and presence of significant symptoms of coronary heart disease? If there is, what kind of relationship is it? Explain briefly but carefully, using the output from this part only. (e) (3 marks) An alternative format for the same data is in http://www.utsc.utoronto.ca/~butler/ d29/chdage2.csv. Read the data

Pages (275 words)
Standard price: \$0.00

### Latest Reviews

Impressed with the sample above? Wait there is more

Related Questions

### Please go through the attached documents and the task below

Please go through the attached documents and the task below  Task: Write a condensed (2.5 – 3 pages or more is fine) chapter 1 for

### You are presenting to a CEO who is interested in

You are presenting to a CEO who is interested in encouraging a more innovative culture by improving the physical layout of where the employees work.

### Instructions For this assignment, choose a journal article from the CSU

Instructions For this assignment, choose a journal article from the CSU Online Library that relates to one of the following topics: electrical safety, fire

### Legislative Communication: Letter For this assignment, you will draft a

Legislative Communication: Letter For this assignment, you will draft a Legislative Letter to a specific legislator and offer support or a constructive argument against

### Topic: Improving Medication Adherence in Diabetic Patients in Home Health

Topic: Improving Medication Adherence in Diabetic Patients in Home Health Care Settings This project needs improvement. The highlighted areas need to updated. Missing in-text citations

### Read assigned chapters (2&3) Chapter 2 – The History of

Read assigned chapters (2&3) Chapter 2 – The History of Labor-Management Relations 1869 to World War I World War I to World War II

### choose one of the topic areas that you picked in

choose one of the topic areas that you picked in Week 3.  You will then find at least 2 more articles for that topic and

### The Book Reading for these Assignments is Attached Lesson 4

The Book Reading for these Assignments is Attached Lesson 4 Discussion A On one page, discuss your views on the four types of public relief

### Writing REQUIREMENTS: Answer the following prompts AFTER you have read the

Writing REQUIREMENTS: Answer the following prompts AFTER you have read the readings, and the information on this link Iconoclastic controversies (Links to an external site.):

### 1 Qualitative data has been described as voluminous and sometimes

1 Qualitative data has been described as voluminous and sometimes overwhelming to the researcher. Discuss two strategies that would help a researcher manage and organize

### Interview of a professional

Students will, on their own, contact and interview a professional (i.e., community counselor, school counselor, Christian counselor, psychometrist) working in a setting that would be

### Identify the cultural event that you plan to experience to

Identify the cultural event that you plan to experience to fulfill the requirements for the main project. What event have you identified? Where is the

New questions