Hi all,
I have a column variable containing only 3- or 4-digit string observations. I just converted from numerical-type as I thought this would allow the abbrev command to work.
abbrev("siccd",3) : gen siccd3
Already, the problem is that command abbrev is unrecognized r(199) - is this because I need to install a package?
Essentially, what I want to do is create a new column having deleted the last number/string from all of the 4-digit variables such that they are all 3-digit variables. Is this possible and do I even need to convert from numeric-type to string-type in the first place?
Thank you all in advance!
Related Posts with Abbreviate all String Observations in a Column
Invalid syntax; not obvious what is wrong.Dear All, I have a 7 year state panel of US states: Code: Code: * Example generated by -dataex-. …
Help converting time series data to panel dataDear Members, I hope you could help me with the following problem, I have an dataset which contains…
Export estimation output of a system regression (reg3)Dear statalist, I estimated a system equation, which contains 14 equations, by command -reg3- then,…
How do I find for a certain value (numeric/string) in one variable if there exists a value (numeric/string) in another variable??My dataset look similar to this Id MathBaseline. WPMBaseline. NepaliBaseline MathPost WPMPost Nepal…
High coefficients with xtlogitDear All, I m running the command xtlogit, re vce(robust) for my model since my dependent variable …
Subscribe to:
Post Comments (Atom)
0 Response to Abbreviate all String Observations in a Column
Post a Comment