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
Transpose and CollapseGood Morning Stata Members, Below is an example of my data structure: SchoolCode,CourseCode, V1, …
Quantify the effect size of an interaction termHello, I have a doubt that it is not specific about Stata. However, I would like to ask you for an…
Power Analysis [power] in Context of Regression Analysis and Robust Standard ErrorsHi, Based on the results of a regression analysis, I would like to perform a power analysis that ac…
Using loop to import and merge excel filesHi, Please, I have 5 excel files: "File1.xls" to "File5.xls". Each file contains only 1 sheet: "She…
table / collect - odd behaviourI am trying to construct a simple table following a paired -test to show the mean difference, p valu…
Subscribe to:
Post Comments (Atom)
0 Response to Abbreviate all String Observations in a Column
Post a Comment