Can gender, educational level, and age predict the odds that someone votes for a particular candidate in the election? Over 1500 voters were selected, and data were col-lected on the highest year of school completed, their age, and their gender. We wish to t a logistic regression model: log(1 p p ) = 0 + 1Age + 2Education + 3Gender, where p is the binomial probability that a person voted for candidate Johnson, and gender is coded as the indicator for female. The R output is given below.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
icon
Concept explainers
Question
  1. Can gender, educational level, and age predict the odds that someone votes for a particular candidate in the election? Over 1500 voters were selected, and data were col-lected on the highest year of school completed, their age, and their gender. We wish to t a logistic regression model: log(1 p p ) = 0 + 1Age + 2Education + 3Gender, where p is the binomial probability that a person voted for candidate Johnson, and gender is coded as the indicator for female. The R output is given below.

 

parameter

df

estimate

s.e

z

p-value

(Intercept)

1

.1119

.3481

.321

.748

Age

1

.0020

.0032

.613

.54

Education

1

-.0100

.0184

.547

.585

Gender

1

.4282

.1040

4.117

.000

Null deviance: 255.95 on 1499 degrees of freedom

 

Residual deviance: 220.80 on 1496 degrees of freedom

 

  • Write down the tted logistic regression and give a short summary about the data analysis . 

 

 

 

 

 

  • Calculate the probability of voting for Johnson for a 35-year-old male with 16 years of school?

 

 

 

 

 

  • Find the odds ratio of voting for Johnson between female and male while controlling age and education and interpret the odds ratio.

 

 

 

 

 

 

  • Find the 95% confidence interval for the odds ratio of voting for Johnson between female and male .

 

 

 

 

 

  • The researcher tted another model with Gender as the only predictor and get the result below. Test whether the two nonsigni cant terms (Age and Education) can be both removed from the model in (a), write down the H0, Ha, test statistic, p-value and conclusion:

parameter

df

estimate

s.e

z

p-value

(Intercept)

1

.1325

.3584

.370

.711

Gender

1

.6723

.1258

5.344

.000

 

 

Null deviance: 255.95 on 1499 degrees of freedom

 

Residual deviance: 227.39 on 1498 degrees of freedom

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Correlation, Regression, and Association
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman