I'm creating a table of the mean from summary statistics. I'm trying to add a row under my column titles/ before other table data that lists string "Sample Date" for each of my column. I've tried using refcat(), scalar(), and other hacks I found on google that have been unsuccessful. The code below came closest to what I wanted, but the sample dates were listed where "obs" would normally go at the bottom of the table below an hline. Any help would be greatly appreciated!
Code:
label var qty1 "Number of Books" label var qty2 "Number of Pages" label var avg1 "Average no. pages per shelf" label var avg2 "Average no. books per shelf" label var avg3 "Average no. pages per book" estpost su qty1 qty2 avg1 avg2 avg3 if library == 1 est store A estadd local sampdate "June 2000", replace estpost su qty1 qty2 avg1 avg2 avg3 if library == 0 est store B estadd local sampdate "December 2003", replace esttab A B using "test2.tex", replace /// label mtitle("\textbf{Library 1}" "\textbf{Library 2}") /// cells(mean(fmt(%9.0fc))) width(.9\hsize) collabels(none) nonum gaps noobs wide /// scalar("sampdate Sample Dates")
Comment