Hello everyone, I need help with converting a particular variable to numbers. The variable in question is the amount of damage done by different disasters. The values were entered as for example 1K (Meaning $1000) and 1M (Meaning $1000000). I will want to convert these values to just numbers. Is there a way to do this in STATA.
PS: As the variable is continuous there are different observations with the "K" suffix e.g. 9K, 12K etc. Also there are different observations with the "M" Suffix.
I will really appreciate your insight on this, as I have a very large data set
I use STATA16
Related Posts with Convert 1K to 1000 and 1M to 1000000
graph editingI created the attached data file from data on the web. I typed:: hbar pctdiff,l(name) using Nick C…
problem with reshape: no xij variables foundHi, I am trying to reshape the below dataset but I got an error: no xij variables found. Thanks for …
Heteroscedasticity corrected*standard errors that allow for clusteringHello, I'm new to stata and I have a problem. I have data on mortgage lending in USA. My data inclu…
using asdoc command when we have loop commandhello, I use this code in terms of the effect the tariff on output , trade balance, exchange rate. I…
Transforming the variable 15th to 80th percentileI want to transform the variable to only include values from 15th to 80th percentile of that data. W…
Subscribe to:
Post Comments (Atom)
0 Response to Convert 1K to 1000 and 1M to 1000000
Post a Comment