Hi
I am fairly new to Stata, and have searched a lot on my issue but have not yet found a solution..
My issue is with destring of my variables. I have imported an excel sheets and some of my observations (due to currency conversion) contains a lot of decimals: eg.
FirmID fias
1 1604.26972699244
2 1454.1477388612
I then use the following destring command: (I have missing data as "n.a.")
destring fias, gen(fias_num) ignore("n.a.")
I get the following result:
FirmID fias_num
1 1.60e+14
2 1.45e+13
Hence that is a completely different number!!
Do anyone have a solution for this?
Fingers crossed
Rasmus
Related Posts with Destring with many decimal issue
Dropping group of variables if the group does not contain a certain valueDear all, I am a stata beginner so this question might sound stupid. I have a dataset that list per…
Panel data - removing individuals if criteria is not met in each yearHi. I have panel data from 2009-2016. I want to remove individuals from the data set if the variable…
How to generate a variable that uses other variables when I have missing valuesI am trying to generate a variable (CSSD) for dispersion which is equal to the sum of the squared de…
IVtobit marginal effectsDear Listers, I am trying to estimate the marginal effects after running ivtobit. The following cod…
Hausman Test issue: difference = 0 for every regressorI am dealing with panel data on 19 UK industries from 1997 to 2018. To test which estimator is most …
Subscribe to:
Post Comments (Atom)
0 Response to Destring with many decimal issue
Post a Comment