I am using Stata 13 and a raster (grid cell) data set combined with vector (point level) data to examine an index of ecological suitability (MEI2)
In order to interpret the interaction between treatment and the index of ecological suitability included in the logit model I am using the following margins command:
However, this gives me the predicted probabilities for the values of MEI2 from 10 to 90 in increments of 10 while holding the other variables at their mean.
How can I get predicted probabilities by MEI2 deciles?
I know how to create deciles out of the MEI
is it possible to do something like:
The MEI2 values range from 0 to 2.65.
Thanks in advance for any suggestions.
In order to interpret the interaction between treatment and the index of ecological suitability included in the logit model I am using the following margins command:
Code:
margins, dydx(treat2) at(MEI2=(10(10)90))
How can I get predicted probabilities by MEI2 deciles?
I know how to create deciles out of the MEI
Code:
_pctile MEI_avg, p(10(10)90)
Code:
margins, dydx(treat2) at(MEI2=p(10(10)90))
Thanks in advance for any suggestions.
Comment