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.
Problem relating to macro panelsHello folks!! I am researching on the determinants of growth of NBFI assets for N=11 countries and T…
String matching to create multiple variablesI need help grouping/creating variables based on string matching. For each patient, they get a new r…
Help with basic subsetting/sub-samplingHello! I am new to programming and need some help with basic subsetting in STATA or R. Hoping someon…
Logistic regression for categorical variablesWhen running a logistic regression, I'm unable to see all the categories under my variable. For eg: …
Howe to read the data of Survey of Consumer Finances in 2019 *with STATA/SE10Hi STATA community I encounter a difficulty while I am trying to read the data of Survey of Consumer…
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