Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Label variables using loop

    Hello stata community,

    first post here! i have q14_1 q14_2 and q14_3 as variable name and its label is Skill/Majors 1, Skill/Majors 2, Skill/Majors 3
    I;d like to change variables' label by using shorter command instead of:

    label var q14_1 "Skill/Majors 1"
    label var q14_2 "Skill/Majors 2"
    label var q14_3 "Skill/Majors 3"

    Is there any short command like loop?

    Thank in advance! that would save lots of time with my cleaning process.
    Last edited by Vidou Riddhy; 01 Mar 2022, 04:12. Reason: Forgot to tag
Working...
X