Hello,
My data is attached as follows. I would like to round the data two digits after decimal (o.oo). Used this command to execute
replace production_index = round (production_index, 0.1)
round not found
r(111);
It shows the above message.
Data is like this
input str134 industries int D str12 E str38 production_index float ID byte month float qdate
"B. (Mining And Quarrying)" 2010 "01-January" "68.90000000000001" 2 1 200
"B. (Mining And Quarrying)" 2010 "02-February" "65" 2 2 200
"B. (Mining And Quarrying)" 2010 "03-March" "75.3" 2 3 200
"B. (Mining And Quarrying)" 2010 "04-April" "79.5" 2 4 201
"B. (Mining And Quarrying)" 2010 "05-May" "81.09999999999999" 2 5 201
"B. (Mining And Quarrying)" 2010 "06-June" "95.3" 2 6 201
"B. (Mining And Quarrying)" 2010 "07-July" "97.5" 2 7 202
"B. (Mining And Quarrying)" 2010 "08-August" "99.09999999999999" 2 8 202
Any advice appreciated!
Related Posts with Round 2 digits after decimal
How to loop using dateHi everyone, I have a dataset like this, Code: * Example generated by -dataex-. To install: ssc i…
How to add up all the previous valueHi everyone, My data looks like below: Code: * Example generated by -dataex-. To install: ssc ins…
Construct a variable when other two takes the same values but invertedDear All, suppose I have the following data: Code: * Example generated by -dataex-. For more info…
Meta analysis - RE: overall line, odds ratio, summary bar.Hello, I am trying to perform a meta-analysis. I put together the data, and I am creating a forest …
Stata commands for summing up z scores of 3 variable measuresI have an independent variable with four measures based on Likert scale of 7-point scale from strong…
Subscribe to:
Post Comments (Atom)
0 Response to Round 2 digits after decimal
Post a Comment