I have numerous variables. For example, I have variables var1, var3, var6, var30. And I want to label those as
temp1, temp3, temp6, temp30 accordingly.
There is no pattern in the number at the end, so I cannot use forval..
Is there a way to do such a task?
Related Posts with How to label variables taking last part of variable names
Mi impute pmm nearest neighbor matchingHello, I am using mi impute pmm command and I have a question regarding nearest neighbor matching. I…
Combine two age group variables, tell stata to use youngest ageHi, I am a criminology student analysing survey data. I have two age grouped variables which I would…
Retrieve the "at legend" on top of margins tableHi, I'm using margins to calculate about 3600 predicted values in a loop, using the option at() wit…
Loop for generating new variablesHi all, I am a new user to STATA--can you help me loop the generate new variable command? Is there a…
Looping replace functionHello all, I am new to STATA and trying to loop replace function. Is there a way to improve my code?…
Subscribe to:
Post Comments (Atom)
0 Response to How to label variables taking last part of variable names
Post a Comment