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
Summary statistics using eststo/esttab in a loopHi there, I am trying to do something like this: Code: local group1 var1 var2 var3 local group2 …
Bootstrapping a two-step estimation with survey dataHello everyone, This is more of a clarification question as my code runs without any errors: I am …
Adding new observations, partially similar to existing ones and according their patternHello, Many thanks to all Statalist contributors, whose posts and references in many topics have he…
Problem with Regression on Stata 15.1 on MacHi, I’m using Stata 15.1 for Mac from my university and I have a problem. Almost every time when I …
Interpreting output for 'test' command in logistic regression.I am using Stata14 to run logic regression on a number of variables including some that are categori…
Subscribe to:
Post Comments (Atom)
0 Response to Average marginal effects of continuous variables by levels of a dichotomous variable
Post a Comment