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
Vertical axis label not showing after converting to pdfI have created a marginplot graph after running a logit regression. After editing the graph in stat…
Change values without changing labelsHi, I have the following dataex for what I have a question about: Code: clear input int(H2PF1 H2PF…
Condense household observationsHi all, Apologies in advance, I'm an inexperienced undergrad. I have a dataset which has 1 househo…
Group-year FEs do not absorb the group-level treatmentHi Statalist, I'm running a DiD with a continuous treatment at the group (industry) level. The trea…
Shapley value decomposition (regression-based decomposition)I want to use the Shapley value decomposition approach to estimate the contribution of a set of fact…
Subscribe to:
Post Comments (Atom)
0 Response to Round 2 digits after decimal
Post a Comment