Hello everyone:
Iam exporting a dta. from Stata to Excel, I have a variable like this gen total_mean (float) = score/ 5. For example, I have in a register gen total_mean=13/5 and Stata reports 2.6 as a result. However, when I export this dta.to Excel it exports it like 2.59999990463256. Why? How I can export it to 2.6?
Thanks a lot,
Luciana
Related Posts with Numbers exported to Excel with more decimals
Problem with missing/ sample n for derived variablesI am using Stata 15 MP My questionnaire dataset: obs: 7,153 vars: 1,714 size: 26,938,198 I have var…
Time dummies or Time trend?Hello everyone I have a question about time dummies and time trend, I hope someone can help. I have …
Manually calculation of the predicted values after LASSO regressionDear all, I am using Stata/SE 16.1 for Mac and I have created an imaginable dataset to illustrate m…
Generating Monthly variable from Year and Month separate Variables.Greetings, I've reviewed the Statalist forum in order to seek an answer for my particular case. Howe…
Ordinal regression modelHello, Does anyone know how the output of a gologit2 (generalized ordinal regression) command is in…
Subscribe to:
Post Comments (Atom)
0 Response to Numbers exported to Excel with more decimals
Post a Comment