I added set type double at the beginning of my code to implement the double-precision for all newly created variables. This works fine.
However, I also want to display values of my newly created variables with two-decimal digits (e.g. 0.34, 12.01, 9.30). I naively thought that enabling double-precision throughout and then running format new_variable %12.2fc would do the trick. Clearly it doesn't as the format command cause precision issues.
How can I then display newly created variables with two-decimal digits while minimizing any lose in precision?
Thank you.
Related Posts with Best practice when using 'format' while maintaining precision of double
MNAR data and factor analysis/latent variable analysisDear community, I hope it is alright that I am asking some quite basic questions. I have collected …
Quantifying serial correlation in a small-T panelHi all, I have a (very) large N and small T panel. For convoluted reasons, I would like to quantify…
Place date year on a second line on x-axisMy x-axis data is currently in date (week) format, so my current code as part of a twoway graph is a…
How to write correctly the panel data regression in the command Stata?Good morning to the community. I've read a lot of books and I've seen a lot of videos on panel data …
Help Regarding "esttab"Greetings Everyone! Hopefully, you will be fine, I want to add Groups(Firms) in the Regression Tabl…
Subscribe to:
Post Comments (Atom)
0 Response to Best practice when using 'format' while maintaining precision of double
Post a Comment