Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Similarly, we might think that increasing the default tip suggestions made some riders angry and would make them respond by tipping zero dollars. Run a
Similarly, we might think that increasing the default tip suggestions made some riders angry and would make them respond by tipping zero dollars. Run a logistic regression in which the depenent variable is the zerotip and the independent variables are CMT postfeb, and CMTxpost. At the mean, what was the marginal effect of increasing the default tip suggestions on the probability that a rider would decide to top zero dollars? Store your answer in the variable effectonzerotip as a float. Is the effect statistically significant? Store your answer in the variable statsig as either the string "yes" or no my code is wrong: import pandas as pd
import statsmodels.api as sm
data pdDataFrame
'zerotip':
CMT:
'postfeb':
X dataCMT 'postfeb'
y datazerotip'
X smaddconstantX
logitmodel smLogity X
result logitmodel.fit
marginaleffects result.getmargeff
effectonzerotip marginaleffects.margeff
pvalue result.pvaluesCMT
statsig 'yes' if pvalue else no
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