Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Marginsplot after ordered logistic regression

    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 :

    Code:
    qui sum JlmsProfit100ForeignAssSale
    local sd = r(sd)
    local sd = r(sd)
    local mean = r(mean)
    margins   , at (JlmsProfit100ForeignAssSale =(`=`mean' - `sd'' `=`mean' + `sd'')) 
    marginsplot

    Click image for larger version

Name:	Graph Statalist exampe.jpg
Views:	1
Size:	47.0 KB
ID:	1644130


    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







Working...
X