Hi, I'm trying to generate a new variable and realized that one efficient way to do it might be using variable labels, because the variable names are not informative. However, I wasn't able to find any good answers or example code on this after a search--especially because I was not the one to create the variable labels, they were already included in the dataset given to me.
This is the general gist of what I am looking to do:
This is the general gist of what I am looking to do:
Code:
gen visible = 1 if ffb*_w3 [variable label contains the word "seen"]
Comment