Hello all,
This is just an example: I do a logit-comman like for instance "logit salary gender" where salary is my dependent variable (in $) and gender is my independent variable (0 = female; 1 = male). I then do the "margins, dydx(*)" command followed by "margins, at(gender=(0(1)1))" and marginsplot, recast(scatter)".
My question is: If i also have a country variable called "country"(where 1 is US; 2 is Canada etc.) what commands should i use to show the difference in salaries (Y) among males and females (X) in different countries in the same marginsplot?
Thanks alot for the answers
Related Posts with Marginsplot with countries
change in sign and significance of linear term after adding quadratic and cubic termsHi all, I need your comments on change in sign and significance of linear term after adding quadrat…
Interaction without main effects-should it be significant too?Should an interaction without main effects be significant if the interaction term is significant in …
loop for dummy variableI have many data sets in the format such as this one, however most are much longer. origin is just t…
Getting the current and future 1, 3, 6 month returnsHello. I am working on a finance thesis. I want to create current month returns from daily stock pri…
Npregress slow with large data-sets, small samplesHi there, Stata brethren. Recently I have been trying to use the new nonparametric regression featu…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with countries
Post a Comment