Hi,
I wanted to identify all variables whose variable labels has all the specific keywords. For example,
Code:
The above code lists 4 varibales viz. headroom trunk length displacement which have either of cu and in words in the variable labels. What I want STATA to do is list only displacement variable becaus only this variable has both the words cu and in in its variable label. Is there a way to do this?
Also, is there a way to match exact string? For example, I want to identify variables which have Rejection string in their variable labels, excluding those which have Rejections string in their varlabels.
Can -findname- or -ds- commands be used to perform the above two task? If not then what is the solution?
Thank you.
Amit
I wanted to identify all variables whose variable labels has all the specific keywords. For example,
Code:
Code:
sysuse auto
Code:
findname, varlabel(*in* *cu*)
Also, is there a way to match exact string? For example, I want to identify variables which have Rejection string in their variable labels, excluding those which have Rejections string in their varlabels.
Can -findname- or -ds- commands be used to perform the above two task? If not then what is the solution?
Thank you.
Amit

Comment