Hi,

I have a time variable in Stata internal form. I am trying to calculate it's summary statistics by group and then exporting it to latex. However, when I export it, I want the figures to be in Human Readable Format and not Stata internal form. Usually, the "format" option of summarize/tabstat gives us human readable format however when used with estpost, I get the following error - "option format not allowed".

This is my code:

estpost tabstat total_time, by(group) c(s) stat(n mean min max), format
esttab . using "TotalTime.tex", cells("n mean min max") label nodepvar replace


How can I solve this?