Hi,
I run this four-way interaction model in Stata 14:
xtreg Y c.X1##c.X2##c.X3##X4 Controls i.country i.year,r
Then, I want to get the average marginal effects (AMEs) of continuous X1, X2 and X3 when dichotomous X4 equals 0 and 1 respectively. My options are:
(i) margins X4, dydx(X1 X2 X3)
(ii) margins if X4==0, dydx(X1 X2 X3) & margins if X4==1, dydx(X1 X2 X3)
Is there any reason I'd prefer (i) to (ii)?
Since (i) treats all observations as if X4==0 and X4==1 respectively, is (ii) more accurate/preferable to accounting for real X4==0 and X4==1 observations separately one by one?
Best,
Lütfi
Related Posts with Average marginal effects of continuous variables by levels of a dichotomous variable
How can I display the top five observations (by frequency) in a table?Hello, I am trying to look at the top five recorded diagnoses (numerically coded) in a very large da…
Switching regression model and Heckman procedureHello! I have a big confusion about the use of Switching regression model with endogenous switching…
Creating new variable from old variable for each unit in panel data settingHi: I have a dataset that looks like this: Code: * Example generated by -dataex-. For more info, …
Creating new variable for each id from old variable in panel data settingHi: I have a dataset that looks like this: Code: * Example generated by -dataex-. For more info, …
Convert a dataset from wide to longHello, I have a dataset (survey longitudinal data) with several variables that I want to convert fr…
Subscribe to:
Post Comments (Atom)
0 Response to Average marginal effects of continuous variables by levels of a dichotomous variable
Post a Comment