Need help? We are here

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

Pick 50 medical terms (NOT 100 words) that you learned

Pick 50 medical terms (NOT 100 words) that you learned in class and create a case study in Word. The guidelines for this project

Data Analysis and Recommendation

This assignment picks up where our last one left off. Having accurately framed the core problem(s) in Assignment 1, we now turn our attention to

Work 1 After completing the readings, respond to the following prompts: Discuss

Work 1 After completing the readings, respond to the following prompts: Discuss the ethical and legal factors as well as professional standards of practice considered

Prior to beginning work on this discussion forum, read Five

Prior to beginning work on this discussion forum, read Five Steps to a Strategic Plan, The Single Strategy You Need to Fuel Business Growth Right

For your midterm paper, you are to find an article

For your midterm paper, you are to find an article from a reputable news source that discusses an issue related to federalism. You will then

PART 3 Community Assessment Project: Health Promotion Plan Paper The

PART 3 Community Assessment Project: Health Promotion Plan Paper The Health Promotion Plan paper assignment is derived from the work that you have done up to

Review Exercise 40: Evaluating the Recruiting Function on pages 123–126

Review Exercise 40: Evaluating the Recruiting Function on pages 123–126 in Nkomo, Fottler & McAfee, 2011. Then, using the Excel documents, respond to the following

Research paper on robotics Chapter 2 – Review of the

Research paper on robotics Chapter 2 – Review of the Literature (6-8 pages) In this section, it is important to clearly identify the major areas

Distinguish between transactional and transformational leadership. Provide specific examples of each style. Which one do you feel is more effective

Distinguish between transactional and transformational leadership. Provide specific examples of each style. Which one do you feel is more effective and why?Required 300 or more

Explain Internal and External recruiting. Discuss the pros and Cons of internal and external recruiting. Requirements: Minimum 23 pages.

Explain Internal and External recruiting. Discuss the pros and Cons of internal and external recruiting.Requirements:– Minimum 2-3 pages. (Excluding both Title and Reference pages)– Your

Assume you are in charge of securing your organization’s applications

Assume you are in charge of securing your organization’s applications and associated data in the cloud. The transfer of data to and from the cloud

Imagine that you are an office manager tasked with coordinating

Imagine that you are an office manager tasked with coordinating and leading the dismissal meeting for an organizational layoff. Instructions Propose three ways, proven

New questions