Dear all,
I am trying to dealing with the following problem:
There is a numeric variable in my dataset which is double precision. This numeric variable must be converted to string type for my next work.
I tried to use "tostring" code to convert this numeric variable to string variable. But failed. The "recast" can not change this variable from double precision to float/int /long/byte. Then I used "decode" code to generate a new variable based on this numeric variable. But there is no value of the new variable.
What can I do to deal with this problem? Please help. Thank you all.
Duo Liu
Related Posts with How to change a numeric variable to string variable? Tostring and decode code don't work.
Time Fixed Effects with Interaction: What is the reference?Hi everyone, hope you having a great week. I'm having trouble reading the following xtreg output. I…
Using a Dataset as VarlistI'm trying to use one data set as the reference list to replace values in another. I suspect the cod…
Questions on mcartestHello, I am trying to test if my data are missing completely at random (MCAR) by using the mcartest…
firm ageHello, I have 26,000 observations. I would like to calculate the age of these incorporations. What …
How to list all unique values in the variable?Hello, I see 'unique' or 'distinct' commands will show the total number of unique values in the var…
Subscribe to:
Post Comments (Atom)
0 Response to How to change a numeric variable to string variable? Tostring and decode code don't work.
Post a Comment