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
xtreg gives coefficients for outcome variablesHey dear Stata-Users! I have a question regarding xtreg: I run a regression model with different de…
Different order of integration - Var and granger causalityHello everyone, I would like to perform a granger causality test between two variables, A and B. H…
all possible pairwise combinations for specific companies in a specific year and in a specific country without repititionHello, I would like to find all possible pairwise combinations for specific companies in a specific …
Mlogit: P-value dosen't appear when doing margins.Me and my group is currently working on our exam, but we have an issue. The main issue is, that it …
Replace values of one variable according to the categories of anotherHi all! I hope you can guide me in the following question. In te following dataset: id Ya Yb id_2 …
Subscribe to:
Post Comments (Atom)
0 Response to Destring with many decimal issue
Post a Comment