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
for bgshade command, what's the matter with my code and if the command can work on pannel data?I want to use the bgshade command to draw shadows, but I didn't succeed. I don't know where the prob…
output the results of xtunitrootDear All, How can I output (word or excel) the testing results of -xtunitroot- command. For example,…
3 dimensional panel clusteringHi, I have a 3 dimensional panel: country, firm, date. I use xtset countryfirm date. and I want to c…
Unique IDs constant over multiple observations and variablesHello everyone, New to STATA and love the helpful community I've been seeing, any help will be much …
Identifying significant difference between two categorical variables (need help regarding the statistical test)Hi! Everyone, while reading an article I came across the following lines where the author used some …
Subscribe to:
Post Comments (Atom)
0 Response to Decimal places control when exporting to tex file using logout
Post a Comment