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
One tailed test of independent variablesHello everyone, I have to determine p-values bases on one-tailed tests for each of my independent v…
Cox Regression - observations end on or before enter()Dear StataList Members, I am trying to conduct a surival anaylsis using the data I placed here. Th…
Drop panel if firm age 0 is missingHi Stata, I want to delete the panel if it not contain firm_age = 0. Any ideas? year firmid fi…
Absolute risk difference from xtgee modelsDear Statalist I would like to calculate adjusted absolute risk differences after using the xtgee c…
Create dummy based on condition(panel data)Hi stata, I want to create this "newdummy" based on the following condition. If the sum of scaledum…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing string variable names
Post a Comment