# 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

### Ann started you with some topics and thoughts to ponder.

Ann started you with some topics and thoughts to ponder. Now, conduct more thorough research, considering how the topics below play a role in

### Part 1:You are part of a busy family medicine clinic

Part 1:You are part of a busy family medicine clinic in Wisconsin.  Today you are tasked with reviewing the last 30 days of clinic patients

### Topics for your Essay, Choose A or B Essay Length tips–To

Topics for your Essay, Choose A or B Essay Length tips–To answer these topics completely, it takes about 2 pages—8-10 paragraphs. Use the topic

### I would use two forms of communication, first communication by

I would use two forms of communication, first communication by email as preparation for what is coming and secondly a face-to-face meeting to explain reasons

### Review from the lesson and textbook readings the types of

Review from the lesson and textbook readings the types of logical fallacies and examples. Locate three advertisements online that were posted no later than

### In the textbook on page 212 you will find the

In the textbook on page 212 you will find the “Review Questions and Activities.” #2 has you “Imagine that you are setting up a

### Domino Trik Adu Balak Anti Kalah Dewa poker merupakan web

Domino Trik Adu Balak Anti Kalah Dewa poker merupakan web website judi online andalan pemain kartu remi di halaman internet. Sebagian cerita teka- teki

### Choose any two topics. Supporting your views with references: When

Choose any two topics.    Supporting your views with references:  When you make an assertion of fact, state that it is based on your own experience or

### Lymphatic Define lymphedema. What is elephantiasis? Provide the differential diagnosis

Lymphatic Define lymphedema. What is elephantiasis? Provide the differential diagnosis of mumps versus cervical adenitis. Thorax and Lungs Define and provide an example of

### You will be required to read one story from the

You will be required to read one story from the Wall Street Journal related to business strategy. The article must come from the last seven

### 1. Read “It all Ties Together”: Define the key steps

1. Read “It all Ties Together”: Define the key steps in their improvement project including key steps and tools. What is the purpose of each

### Read the minicase at the end of Chapter 11, “Integrating

Read the minicase at the end of Chapter 11, “Integrating Teams at Hernandez and Associates.” Write a paper in response to the two questions

New questions