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
Event study approach assumptionsHi there, I know this is not really related to Stata, but I was wondering if someone could still he…
Simple merge questionI used a collapse command to count the number of occurrences linked to particular survey responses: …
HLM Models and Cluster Variable SelectionI am involved in a research project examining HIV risk behaviors, pooling data from recent surveys i…
Counting Outliers using standard deviationsHi, I have a variable Y, is there any stata function that can help me to count and identify the outl…
GSEM with multiple moderatorsWould you please help me on the following question? I want to look at the effect of x on y. I suspec…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with countries
Post a Comment