My goal is to compare the AMEs between two subpopulations of my sample in a logit model. However, there are two different moments in my analysis I can think of on where I can divide my sample into those two subpopulations, leading to very different results.
In the example below y would be my binary dependent variable; a and b are covariates and subpop is a dummy, dividing my sample into those two subgroups.
Possibility 1:
forval i=0/1 {
logit y a b if subpop==`i'
margins, dydx(a b)
}
Possibility 2:
forval i=0/1 {
logit y a b i.subpop
margins if rich==`i', dydx(a b)
}
I know for the latter code, the over() and the subpop() command can be used as well, which does not change the results with my data. What does change the magnitude of the effects of a and b on y tremendously is whether I divide my population before the logit command is executed or after the logit command is executed (i.e. before the margins command is executed). So my question is, which option is the “correct” one or rather how do the two options differ in the interpretation of results?
Thanks a lot in advance!
Related Posts with When to divide in subpopulations, using the margins command (AME) in a logit model?
Adding confidence intervalls with 'estimates table' or 'putdocx' commandI would like to have a table of different OLS (LPM) regression models that shows confidence interval…
Stata Graph for Panel Data in quartersGreetings to the forum! I have a panel dataset with 5 retailing companies for 15 years in quarters:…
Panel Var + IVHi, Im totally new to Stata. Please help me. I would like to find the impact of government spending…
Seemingly unrelated regressions: when using and results interpretationDear all, I recently run into some seemingly unrelated regressions and did some attempts to compare …
estimate time varying coefficientsHello, In my dataset for my gravity model, i have 6 time periods (1990 1995 2000 2005 2010 2015) an…
Subscribe to:
Post Comments (Atom)
0 Response to When to divide in subpopulations, using the margins command (AME) in a logit model?
Post a Comment