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
Delete whole rowI have discovered that I have duplicates for a whole row (same person).. how do I delete the rows wi…
Relative risk and the risk differenceHi, I try to estimate the treatment effect in an RCT using the xtlogit command as I have panel data.…
iv with interactionI have an endogenous variable P . In my specification I also have interaction of P with X (X is an e…
Latent Class AnalysisHi Statalist I am performing Latent Class Analysis in STATA 14. I am using the following Code: gse…
How to use -graph combine- and typical twoway options with -meta forest-Dear all, I would like to present forest plots side by side, but -meta forest- does not work well w…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with countries
Post a Comment