Please see the attached document for this project
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Assignment # 7 Chapter 9 Note: Please write up responses to the following problems. You may type your responses into a Word document, or hand-write responses and take a photo or scan your hand-written work. • Problems 9.4 and 9.6 on p. 444 • Problems 9.21, 9.23 on p. 447 • Problems 9.22, 9.24 on p. 447 This video should be helpful in using R to complete the following problems: Simple Logistic Regression: glm() Problem 1 Based on 9.36 and 9.38, (p.449). File: Election16.csv. Read the description of the fields in this file in 9.36 on p.449. a. Create the simple logistic models in problem 9.36; that is, create a model to predict the binary variable TrumpWin using just Income, then again using just HS, etc. as described in 9.36. Answer the questions in 9.36. b. Read and do the instructions in 9.38, and answer the questions in parts a, b and c. Problem 2 Based on Problem 9.41 (p.450) Files: Leukemia.csv Read the description of the fields in this file in 9.41 on p.450. a. Answer parts a and c of problem 9.41 (ignore doing part b when asked). Note: In R, you calculate the p-value as discussed on p.440 with a chi-square distribution with 1 degree of freedom, and using G = Null deviance – Residual deviance. Example 9.17 on p.441 shows a bit of this, as does my video. That is, p-value = pchisq(Null deviance – Residual deviance,1,lower.tail=FALSE) b. Also fit a logistic model for Resp using Smear, and interpret the results and discuss whether the relationship is statistically significant as you did for the other variables. c. For each of your three models, also create a 95% confidence interval for the odds ratio for the slope, π½π½Μ1, using the idea on page 438 and taking exponentials, οΏ½ ππ +c(-1,0,1)*1.96*πΊπΊπΊπΊπ·π·οΏ½ ), exp(π·π· ππ and explain how this confidence interval does or does not agree with your previous discussion of statistical significance.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds
