Dear Statalist,
I am trying to create a marginsplot to investigate the effect of internationalization on a variable that is of ordinal nature from 8-22 so 15 levels. I would like to see the maringal effects from mean - 1 Standard deviation, Mean , Mean + 1 standard deviation. So far i have been using this code :


This does result in a graph, however this graph shows the effect the variable has on the probability of each outcome, is there a way for me to put the ordinal variable on the y axis with 8-22 and have the joint effect visualized of my x-axis variable on the ordinal variable with a singular graph.
Thank you for taking the time reading this!
Kind Regards,
Max Verheijen
I am trying to create a marginsplot to investigate the effect of internationalization on a variable that is of ordinal nature from 8-22 so 15 levels. I would like to see the maringal effects from mean - 1 Standard deviation, Mean , Mean + 1 standard deviation. So far i have been using this code :
Code:
qui sum JlmsProfit100ForeignAssSale local sd = r(sd) local sd = r(sd) local mean = r(mean) margins , at (JlmsProfit100ForeignAssSale =(`=`mean' - `sd'' `=`mean' + `sd'')) marginsplot
This does result in a graph, however this graph shows the effect the variable has on the probability of each outcome, is there a way for me to put the ordinal variable on the y axis with 8-22 and have the joint effect visualized of my x-axis variable on the ordinal variable with a singular graph.
Thank you for taking the time reading this!
Kind Regards,
Max Verheijen