Hello everyone, I have a question about esttab command in a loop and getting the entire output in an excel file. So my command goes like this:
local name2 "shg_new shgs drain water_source water_supply education health icds irrigation market road waste_manage tubewell grant_received opening_bal closing_bal"
foreach name2 in shg_new shgs drain water_source water_supply education ///
health icds irrigation market road waste_manage tubewell ///
grant_received opening_bal closing_bal {
bysort year: eststo: estpost ttest `name2', by(cpgender) unequal
esttab using summarystat.csv, wide append
}
The issue is that the output table in the excel file is only for one year. The remaining years do not get compiled in the excel file. Is there something wrong with my command? Kindly help.
Related Posts with Esttab in a loop and getting table for summary statistics
How to allow for time-varying treatment effects and heterogeneous treatment subgroup effects in generalized DD?Hi all, I am running a generalized DD to estimate the effect on infant mortality rate (imr) of a he…
how to count the numbers of variables that meet some requirements in the matrix?I want to count the numbers of variables whose p value is less than .2 after running a regression mo…
Trim Stata OutputHi, My dataset has many (more 100,000) observations. I am running a standard fixed effects model wi…
Dropping lowest n values of a group variableHi, my question is a bit silly but I am just not being very bright today As you can see from the da…
No p-value in xtpedroni cointegration testDear All, I ran xtpedroni cointegration and the p-values are not sowing. However, the reviewer for …
Subscribe to:
Post Comments (Atom)
0 Response to Esttab in a loop and getting table for summary statistics
Post a Comment