I have a variable named S_Kx, S_Jx S_Yx, S_Sx
I want to nix all variables that dont' have the same beginning as they do with after _ (i.e. S_Sx would be kept, but S_Kx and all others would be dropped)
therefore
v_vx would be kept
!v_vx would be dropped
v can be ANY letter of the alphabet
how could I approach this?
Related Posts with Comparing string variable names
egen rank for multiple variables Code: +-------------------------------------------------------------+ | country year …
Independent variable becomes significant when i include its squared value in regressionHi guys, I am looking into the effect of inequality on economic growth using panel estimation. Whe…
Maximum of indexed variablesDear users, I would like to please ask for your help concerning the following issue. I would like …
Renaming graphsHi, I would like to plot a graph titled "Crude Oil Production". As I type in the code, Code: two…
Predictors of Class Membership with Latent Class AnalysisHi Users, I think I may missing something simple so this may be trivial for some of you. I conducte…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing string variable names
Post a Comment