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
Twoway Scatter help: Change range, show labels and Bisector lineHello. I am trying to do a twoway scatter graph. The first problem i faced was that the range was no…
Panel Data IV Year DummiesI'm estimating the effect of wealth inequality on life expectancy at the region level from 2000-2015…
Minimum detectable hazard ratio/relative riskHi all, Is there a way to calculate these in STATA? I am carrying out a study relating to medicatio…
Area Under SROC Curve for Meta Analysis of Diagnostic Test Accuracy (DTA) StudiesI am working on a meta analysis of DTA studies. Using the command: metandi tp fp fn tn if testtype…
IFLS Info Test Code: ================================================================================== SUMMARY I…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with countries
Post a Comment