Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!