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
Creating observation ( based on "/" from another obs) Code: +-------------------------------------------------------------------+ | …
Matching households food consumption with individualDear Stata list, I have household level 24 hours food consumption data (by Menu) including ingredie…
How to deal with unbalanced panel data for Hedonic Price Method?I currently have a micro (5 years) panel data of house price transaction. There are a total of 800 d…
-egen, xtile- works in Stata 11, 12, 13, but generates an error message in Stata 15... Is this situation supposed to not occur?Good afternoon, The -egen, xtile- command/function from the egenmore package by Nick Cox is exhibit…
Generate mean based on condition, where condition is based on variableHello dear Statalist-experts, I have a daily panel-dataset in long format, containing, among other …
Subscribe to:
Post Comments (Atom)
0 Response to Destring with many decimal issue
Post a Comment