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
Writing string variable to x-axis while actually plotting numeric variableI have this data. var1 var2 var3 apple 1 4 banana 2 6 strawberry 3 9 To draw a graph, I do Code:…
How to calculate transition probabilties?Hi, I am trying to use the following model: UTPr,s = Pr (Yt > s+r | Yo < s) to calculate upwa…
ardlthe ardl optimal lag length code is not working at all i have 5 countries t= 28 five independent var…
Comparing the Explanatory power of two regression modelsI would like to compare two models with each other. However, these two models have different sample …
Using datetime in an expression? (Or dropping duplicates with an *earlier* datetime?)Hello! I am looking at the results of a survey in which some respondents submitted a response premat…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot with countries
Post a Comment