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
I/O error writing .dta file Usually such I/O errors are caused by the disk or file system being full.Hello When I join or merge or append the data set, it gives the following message. The size of the …
Help creating log metric for pooled odds ratioDear all, I am trying to perform egger test on my meta analysis of studies on the prevalence of dis…
Dealing with census year in multilevel modelHi, I have a hard time figuring this out. I have population data gathered from 7 consecutive censuse…
Dummy variables in pseudo-panel modelsDear all, When I incorporate dummies in pseudo-panel models, should I use the dummy variable itself…
Transparency in graphs not working with scheme-specific colorsHello everyone, I'm trying to produce a histogram in Stata 17 with the following attributes: using …
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with countries
Post a Comment