# 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

### Module 06 Discussion – Empathetic Care Initial Post Choose one

Module 06 Discussion – Empathetic Care Initial Post Choose one of the infectious respiratory disorders from this module to discuss the multidimensional care strategies

### Ethical System:Pathways, Virtues, and Ahimsa Overview Jainism focuses on the

Ethical System:Pathways, Virtues, and Ahimsa Overview Jainism focuses on the idea of ahimsa, that is, doing no harm. Buddhism focuses on the end of dukka,

### 1.) Only 1 report for Lab 3. 2.) Need to

1.) Only 1 report for Lab 3. 2.)  Need to follow the report format that described in assignment 3.3.)  Results should include part I and

### Without supervision, do you believe that most workers would circumvent

Without supervision, do you believe that most workers would circumvent OSHA rules if it means that they can get the job done faster? If so,

### write a reflection essay on how the movie connects to digital divide. The review must be 10001500 words and include

write a reflection essay on how the movie connects to digital divide. The review must be 1,000-1,500 words and include a brief summary of the

### Assessment Description Using all of the previous assignment information, students

Assessment Description Using all of the previous assignment information, students will present a comprehensive Cybersecurity Program that reports on the final state of their enterprise.

### The Surgical Care Improvement Project (SCIP) is a national quality

The Surgical Care Improvement Project (SCIP) is a national quality partnership of organizations interested in improving surgical care by significantly reducing surgical complications. Partners in

### What is music meant to accomplish? How is music perceived

What is music meant to accomplish?  How is music perceived by listeners?  Although everyone has different listening habits and preferences, there are some aspects of

### Lesson 14 – Discussion A medical group recently conducted an

Lesson 14 – Discussion A medical group recently conducted an advertising campaign for its new pediatric orthopedics department.  After 4 weeks, a telephone survey found

### Paper Identify the three major types of controls that organizations

Paper Identify the three major types of controls that organizations can use to protect their information resources and provide an example of each one. What

### there are two discussion posts.please reply each one with 250

there are two discussion posts.please reply each one with 250 words as fellow student. post 1 After watching the videos on how to master online

### This is a Collaborative Learning Communityassignment. You are a member of a special awards committee at Grand Canyon University. A

This is a Collaborative Learning Communityassignment.You are a member of a special awards committee at Grand Canyon University. A special trust fund has been established

New questions