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.
Combining summary statistics and correlation matrixHi everyone, I need to create a table combining summary statistics and correlation matrix as a part …
Using Kappa / Weighted KappaDear all Please advise if I can use kappa with this data structure: With two raters (fc and lp) sco…
Dealing with missing dataHi, I use the following equation for calculating return for a portfolio of stocks. gen MOMf3_p1= ( …
Structural Equation Modelling (SEM) using STATAHi, I want to analyze my data using SEM in stata. This is my model: Array Health variable consist of…
How to deal with "factor variable and time-series operators not allowed "when I run gllamm command?Hello all, How can I include dummy variables in gllamm?Or how can I change factor variales into dumm…
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