# 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

### Complete the Learn: Self-Assessment: Do You Have What it Takes

Complete the Learn: Self-Assessment: Do You Have What it Takes to Be a Leader? exercise located in this week’s Learning Activities folder. Respond to the

### PHASE 2 This assignment is part two of three parts

PHASE 2 This assignment is part two of three parts to be completed in preparation for the final paper. Review the Final Paper: Details and

### This week you will continue to formulate a marketing strategy

This week you will continue to formulate a marketing strategy to use for a marketing project plan based on the proposal you completed in Week

### Low income first generation college students are struggling to pay for college. ( that’s the challenge these specific students face).

For this essay talk about ONE specific kind of college students, talk about low income first generation college students and we need to talk about a

### You will write a minimum 7-page essay that considers the

You will write a minimum 7-page essay that considers the questions about the history, culture and language use of your family. Research documents and interview

### Species Briefing Report Assignment

For this report you will select a California native plant or an introduced alien plant that is causing problems for California ecosystems, conduct research on

### Please Follow directions or I dispute  Will be checked for plagiarism  Using

Please Follow directions or I dispute  Will be checked for plagiarism  Using the topic of your choice, please write a 3 page paper with 2-3

### Leadership in Contemporary Health Care

Intended Learning Outcomes By the end of this course, students will be able to:  1. Critically analyse the impact of policy and quality strategies related

### Research professional health care associations, such as HIMSS and AHIMA,

Research professional health care associations, such as HIMSS and AHIMA, that address ethical standards. Using information from your chosen association, write at least a

### A. Reduce (Source Reduction) – Describe at least two ways

A. Reduce (Source Reduction) – Describe at least two ways in which you help to reduce the amount of solid waste that you produce

### Based on viewing the Johnson & Johnson video, what are

Based on viewing the Johnson & Johnson video, what are your thoughts about health care inequalities and the need for continuing reform? (Share at least

### 4.15  (computerization of health Records) a health-care issue that has been

4.15  (computerization of health Records) a health-care issue that has been in the news lately is the computerization of health records. This possibility is being

New questions