Hi Statalisters,
I am new to Stata and encounter some problems.
I have a dataset with some string variables. For observations in a variable, I want to identify some values with specific character, present their frequency distribution, and remove them.
For example, in the variable Customer_Name, I want to identify values with character "Government" (distinguish the upper & lowercase), present the frequency of values that contain character "Government", and finally remove them.
Thanks in advance,
Chris
Related Posts with How to identify and operate characters in a string variable?
Generate random points around a centroid in circleHi everyone, I am struggling to generate random points around a fixed point (defined by latitude an…
Omitted because of collinearityI am running a regression with 5 dummy variables and 6 non-dummy variables. One of the dummy variabl…
Merging two datasets by different variable names (fuzzy match) - help with reclink and matchitHi, I am using two datasets with the aim to merge them according to the name of the place. The firs…
Compute spatially weighted regressors using spregHello I´m trying calculate a spatial durbin model, however i can´t generate Spatially Weighted Regr…
Global Search Regression "__000006 not found"Dear statalisters, I'm usinsg Stata 14, and trying to use the command gsreg to select the variables…
Subscribe to:
Post Comments (Atom)
0 Response to How to identify and operate characters in a string variable?
Post a Comment