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 modify user-written ado file name without running into loading errorHi all, I've been working on a user-written ado file that with its current name works perfectly fin…
recoding a new generated variableHi everyone, I have a dataset that contains respondents' cognitive functioning and whether they rece…
Stata Journal Editors' Prize 2019 is awarded to Matias D. CattaneoThe Editors of the Stata Journal are delighted to announce the award of their 2019 prize to Matias D…
Creating and displaying graphs in a loop with dyndocHi, I try to generate standard graphs with every numeric variable in my dataset and create a nice l…
Getting exact numbers when extracting p-values from ttestsHello, I wrote code that uses local macros and matrices to extract p-values from many ttests, and o…
Subscribe to:
Post Comments (Atom)
0 Response to Esttab in a loop and getting table for summary statistics
Post a Comment