Hi Statalisters,
I am using margins command to see effect of interaction term and subsequently I am interested in calculating the point at which below two lines intersect.
I run the model first using:
Then I get the margins using:
And finally the graph using:
which comes out to be:
Array
Since I am interested in calculating the point at which these two lines intersect, I can do it manually by by getting the line equations for both using y=slope*x+constant. However, I would like if there's a way to do this through some code in Stata.
Thank you,
Mohsin
I am using margins command to see effect of interaction term and subsequently I am interested in calculating the point at which below two lines intersect.
I run the model first using:
:
regress avsg asg_1 avten pcoo avtmt pdc avri avhhi poc avtd avcal i.cino##c.avlemp, vce(robust)
:
margins cino, at(avlemp=(-1.2(.6)4.8))
:
marginsplot, noci
Array
Since I am interested in calculating the point at which these two lines intersect, I can do it manually by by getting the line equations for both using y=slope*x+constant. However, I would like if there's a way to do this through some code in Stata.
Thank you,
Mohsin