Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We are interested in the factors that influence whether a political candidate wins an election. The outcome (response) variable is binary (0/1); win or lose.
We are interested in the factors that influence whether a political candidate wins an election. The outcome (response) variable is binary (0/1); win or lose. The predictor variables of interest are the amount of money spent on the campaign, the amount of time spent campaigning negatively and whether or not the candidate is an incumbent.
This dataset has a binary response variable called the 'result'
Find the Following :-
- fit generalized linear models using glm
- calculate the confint value for the object
- Calculate the exponential value of the object
- Calculate the predictive values for the data
- Calculate the residual value.
- plot the Logistic Regression graph
- Provide explanation for the model and your interpretation of the findings.
Election-id | Result | Year | Amount Spent | Popularity Rank |
122 | 0 | 32 | 3.81 | 3 |
315 | 1 | 48 | 6.32 | 2 |
201 | 1 | 51 | 3.67 | 1 |
965 | 0 | 40 | 2.93 | 4 |
410 | 1 | 52 | 3.6 | 1 |
150 | 0 | 35 | 4.2 | 4 |
743 | 1 | 39 | 5.66 | 2 |
612 | 1 | 42 | 4.32 | 3 |
206 | 1 | 44 | 3.26 | 3 |
792 | 0 | 50 | 4.52 | 4 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started