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
Generating an average of 3 x variables with a rule that at least 2 need to not be missingHi Folks, simple question here that I can't get my head around. I have 3 x blood pressure values pe…
Syntax error in loop creationHi everyone, I am getting an error in the loop creation and cannot identify why. Any suggestions wo…
Id variable stored in double formatHello Stata members, I am analysing dataset in which pid is stored in double format. Since I want t…
Reshaping dta from long to wide formatHi there, I am fairly new to Stata. I am needing help in reshaping a database from long to wide. I h…
Problem with converting a cross-sectional dataset into panelGood afternoon, Attached is an extract of my dataset. I have cross-sectional data with two variable…
Subscribe to:
Post Comments (Atom)
0 Response to How to label variables taking last part of variable names
Post a Comment