Announcement

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

  • Adjusted predictions after melogit

    Hi,

    I am trying to get a margins plot of adjusted predictions of developing low Mental Health-QoL after running melogit. I wanted to get the predictions and their 95% CIs for men between the ages of 18-24, but I wanted the plot to show predictions for those with metabolic syndrome and those without; so ultimately two lines that show adjusted predictions based on metabolic syndrome status. I used the following codes and I attached the output and plot as images:

    Code:
     melogit low_MCS curmetsyn##c.agenew if sex==1 || newid:, covariance(unstructured) nolog
    Code:
     margins, at(agenew=(18(1)24)) atmeans
    Code:
     marginsplot, xdimension(at(agenew))
    I'm not sure why it's only giving me one line; is there something I'm missing in the code?

    Any help is appreciated.
    Thank you in advance!



    Attached Files
    Last edited by Victoria Limon; 02 Apr 2018, 23:33.
Working...
X