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
R^2 value of a hetprobit regressionHow do I get the R^2 value of a hetprobit regression? …
Walds test in the craggit resultI am doing a double hurdle model using the craggit command. The results report a walds test.Could an…
Next day dummy variableDear Stata experts, To better present my question, here is a sample of my data, which consists of 3…
Bayesian Moving AverageHi, I have recently run an xtlogit model and to further get better estimates I assume from my unders…
[Offering $20 Amazon Gift Card] How to use Propensity Score Matching / Nearest Neighbor Matching with a Difference in Differences modelDear all, Background: In this simplified dataset example, I am trying to perform causal inference …
Subscribe to:
Post Comments (Atom)
0 Response to Abbreviate all String Observations in a Column
Post a Comment