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
Restructure dates in sequential mannerI got a raw dataset in a wide format that includes hundreds of variables defining drug prescriptions…
creating an mutinomial variableHello, I am trying to establish a multinomial logit model in stata. I have a panel of 60 countries, …
Plotting -xtmixed- growth curve modelHello, I am using Stata 15.1 and I want to plot my growth curve model. I wave 5 waves and I want to…
new variable: replace with nonumeric variable contentHey, I want to generate a new variable out of a variable that is already existing. However, the exi…
Quintiles comparisonIs there a non parametric method to compare quintiles in STATA? like we compare median …
Subscribe to:
Post Comments (Atom)
0 Response to Esttab in a loop and getting table for summary statistics
Post a Comment