More specifically:
- Calculate the partial effect at the average of election day violence from the probit model (that is, calculate effect on the probability that fraud = 1 for a marginal increase in election viol for the “average” observation, by plugging in the mean of the X variables).
- As well as calculate the average partial effect of election day violence from the probit model (that is, calculate the partial effect on the probability that fraud = 1 for a marginal increase in election viol for each observation and take the mean).
margins, dydx(fraud fraud_probit) atmeans
but I keep getting:
invalid dydx() option;
fraud not found in list of covariates
r(322);
I have included my do file and the .csv
Thanks for your help.
0 Response to Margins dxdy
Post a Comment