Dear colleagues,
I want to calculate and plot the AMEs of a continuous variable (contVar: Mean=0;SD=1) after I estimated an ordinal model. My plan is to calculate AMEs for different values in the range from -2SD to +2SD with the margins command and plot this AMEs with marginsplot (or if you have better solutions, let me know).
My questions:
1.What is the difference between the following command set-ups of the margins command:
or
2.Since the first code provides me with just one estimate, how do I estimate and store the AMEs of my contVar in the first dydx()-version for the range from -2SD to +2SD and plot it with marginsplot like it is possible for the second code?
If you need more detail information, just let me know. But if it is clear to you what I am want to do, I would appreciate your advice/help.
Best,
Julian
I want to calculate and plot the AMEs of a continuous variable (contVar: Mean=0;SD=1) after I estimated an ordinal model. My plan is to calculate AMEs for different values in the range from -2SD to +2SD with the margins command and plot this AMEs with marginsplot (or if you have better solutions, let me know).
My questions:
1.What is the difference between the following command set-ups of the margins command:
Code:
margins, dydx(contVar) asobserved
Code:
margins, at(contVar=-2(.05)+2) asobserved
2.Since the first code provides me with just one estimate, how do I estimate and store the AMEs of my contVar in the first dydx()-version for the range from -2SD to +2SD and plot it with marginsplot like it is possible for the second code?
If you need more detail information, just let me know. But if it is clear to you what I am want to do, I would appreciate your advice/help.
Best,
Julian
Comment