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.
Panel data: xtoverid rejects RE for model with only time controls; odd result or information?Dear Statalisters, I am using interrupted time series methods on household panel data. I have month…
Need help with dataset with multiple datesHi I am working with a dataset which ahs multiple dates for the same diagnosis for a patient and I o…
How to change a line pattern within a same graph? Hi, I would like to plot a graph using Code: twoway line and draw a different graph pattern after …
linking data with a keyHello I need some help linking this data set So the variable taskdefinitionid is the numerical cod…
Need help re-arranging dataHi my dataset looks like this right now: clear input long mrn str10 date str11 diagnosis long date_n…
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