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 type the following:
margins, dydx(X1) at (X2=(0(0.1)1) X3=(0(0.1)1) X4=(0 1)) saving (predictions,replace)
How can I get the "twoway contour" to view the results for only significant average marginal effects of X1 on Y conditional on X2 and X3 when X4 equals 0 and 1 respectively?
Best,
Lütfi
Related Posts with Twoway contour for significant average marginal effects
Variable with negative valuesHey, I'm stuck on a simple thing and would really need some help. I have a non-numeric variable ran…
Why is R2 greater than 1.0 in this PCSE analysis?I encountered a perplexing set of results after running xtpcse. R-squared = 1.1892. Any ideas why th…
How to count a purchase date of medicines?Hello! This is Babar, quite new here in this forum and here is my first question. " I have a long d…
Complicate box plotHii guys, I have a database made as follows: Code: * Example generated by -dataex-. To install: s…
Generating variable and replacing the outlier as missing based on grouping and conditionDear All, I am working with firm level data. I want to generate a variable lsales = ln(sales) and wa…
Subscribe to:
Post Comments (Atom)
0 Response to Twoway contour for significant average marginal effects
Post a Comment