Dear Statalists,
I have a few numbers in my dta which I would like them to remain in this format (rounded to 1 decimal place) in tex file:
Average 14.0 5.2 3.5 10.5 50.4 26.8 28.9
However, when I export it to tex using "logout,save($filename) tex replace", it became:
Average & 14 & 5.200 & 3.500 & 10.50 & 50.40 & 26.80 & 28.90 \\ \hline
I wondered why this happened (maybe due to the notorious Stata approximation of numbers) and how I can correct it.
Thanks a lot!
--
Problem solved using "logout,save($filename) tex replace dec(1)"!
Welcome other suggestions too!
Related Posts with Decimal places control when exporting to tex file using logout
cannot compute an improvement -- discontinuous region encounteredI am trying to build a multilevel model with the governrate-level indicators, but I get this problem…
Tobin's QHi all, I am trying to merge two data sets from Compustat to get Tobin's Q. I try to merge the two …
How to loop element-by-element operations (e.g regression)Hello, I am trying to find a way to loop element by element operations across two lists of variables…
reshape / transpose large dataset for mergingI am constructing a large timeseries dataset, with cases arranged around WDI_code (World Development…
How to repeat some command linesHello all, I need to repeat 3 line of commands in stata to create updated observations for three va…
Subscribe to:
Post Comments (Atom)
0 Response to Decimal places control when exporting to tex file using logout
Post a Comment