Hello dear Stata listers
i am using Stata 17
i was requested by the reviewer of a paper to plot a graph with the odds ratio in the Y axis and the continuous variable in the X axis.
i have tried the following
logistic outcome continuosvariable i.sexe
margins, at(continuousvariable(0(1)2)
marginsplot
But i get the predicted probability in the Y axis instead of the odds ratio. i need to get the odds ratio in the Y axis.
Many thanks beforehand! Your hep will be highly appreciated!
MAY ALMIGHTY GOD bless you much
natalia campos obando
SAN JOSE, Costa Rica
i am using Stata 17
i was requested by the reviewer of a paper to plot a graph with the odds ratio in the Y axis and the continuous variable in the X axis.
i have tried the following
logistic outcome continuosvariable i.sexe
margins, at(continuousvariable(0(1)2)
marginsplot
But i get the predicted probability in the Y axis instead of the odds ratio. i need to get the odds ratio in the Y axis.
Many thanks beforehand! Your hep will be highly appreciated!
MAY ALMIGHTY GOD bless you much
natalia campos obando
SAN JOSE, Costa Rica
Comment