Dear Stata Users,
I’m having some troubles in adding some scalars to a LaTex table made with esttab.
I run, for example, a similar regression and add some acronyms for fixed effects etc as following:
Following this, I aim to utilize the procedure outlined by de Chaisemartin & d'Haultfoeuille (2020) to compute the negative weight and store some of the resulting diagnostic statistics:
Finally, I use esttab to generate the final LaTex table:
Can anyone explain to me why I can't find the diagnostic values that should have been added as scalars while the other scalars that were added after the regression are present? (Note that in the table I only find a random number in one of these missing parameters that seems to have come out of nowhere).
Best regards
Pasquale
I’m having some troubles in adding some scalars to a LaTex table made with esttab.
I run, for example, a similar regression and add some acronyms for fixed effects etc as following:
Code:
eststo: xi:xtreg y treatment_dummy $covs i.year, fe vce(cluster id) estadd local year_d "Y" , replace estadd local fixed "Y" , replace estadd local controls "Y" , replace summ y if e(sample) estadd scalar ymean = r(mean), replace
Code:
twowayfeweights y id year treatment_dummy, type(feTR) controls($covs) ereturn list estadd scalar sum_neg_weight = e(sum_neg_w) estadd scalar sigma = e(lb_se_te) estadd scalar sigma_2 = e(lb_se_te2)
Code:
esttab using /path/table.tex, replace se(%3.2f) r2 keep(treatment_dummy $covs) /* */ label booktabs star(* 0.10 ** 0.05 *** 0.01) f nogaps nonotes/* */ s(ymean sum_neg_weight sigma sigma_2 controls year_d fixed r2 N, label("Mean of dep. var." "Sum of negative weights" "$\underline \sigma_{fe}$" "$\underline{\underline \sigma}_{fe}$" "Controls" "Year Effects" /* */ "Individual Effects" "\emph{R}$^2$" "Obs."))
Best regards
Pasquale
Comment