Hello,
Suppose I have Y as my dependent variable, and I have three dummies, d1, d2, d3. Suppose I run
reg Y d1 d1#d2 d1#d3, nocons
Then having both d1 = 1 and d2 = 1 is equal to d1 + d1#d2.
I want to esttab this results, but instead of the coefficients of d1, d1#d2 and d1#d3 in the lines of the table, I want to have d1, d1 + d1#d2 and d1 + d1#d3.
Margins won't help in this case because I am not regressing Y d1 d2 d3 d1#d2 d1#d3 d2#d3, which would give all margins possible. (I tried using the margins command and it returned "Not Estimable" for the margins of d2 and d3)
Thanks in advance
Related Posts with Eststo/esttab with sum of coefficients (dummies)
How to replace value of a variable in one round with its value in a previous round ?Hi all, Please consider the following sample data Code: * Example generated by -dataex-. To insta…
Error message "Maximum numbers of iterations exceeded"Hello, I am in the process of building a regression model with a DV (q_tot), an IV (rdalliances), a…
ignore insufficient observations and run the loop without breakingHi, I would like to calculate cumulative security residual return, which is residual in a regression…
How To Count Identical Values As One Without DroppingDear Stata Community, I'm trying to 'count the number of years each person attended the conference …
Test for heteroskedasticity after spxtregressThe spatial Stata manual (https://www.stata.com/manuals/sp.pdf) makes clear that heteroskedasticity …
Subscribe to:
Post Comments (Atom)
0 Response to Eststo/esttab with sum of coefficients (dummies)
Post a Comment