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
Export output of levelsofHi Statalists! This will be my first posts, but I have been lurking around this forum for a while l…
Creating dummy variables with category namesDear all, I have a dataset comprising thousands of individuals. For each individual I have, among ot…
Confidence intervals for wtpHi everyone! Does anyone know why do we need to calculate Confidence Interval for Willingness to Pay…
Shaded bar between values of X axis of a line graphHi, I am making a line graph where x axis is the year. I want to highlight/shade the periods betwee…
Panel binary logistic regression, lagged independent and dependent variables, and age effectsDear Statalist users, I hope you are well. I am a PhD candidate at RMIT University, Melbourne. I a…
Subscribe to:
Post Comments (Atom)
0 Response to Abbreviate all String Observations in a Column
Post a Comment