Hi, I was wondering if someone here were able to accomplish some more advance variable set selection using findname ( ssc install findname).
OK outputs:
Moreover, as mentioned in help file, I were supppose to, for example, any(@ < 0) selects numeric variables in which any values are negative. However:
I was expecting:
thks, in advance.
Code:
clear forvalues i=1/11 { generate u`i' = . label variable u`i' "`i'" } . desc Contains data Observations: 0 Variables: 11 ------------------------------------------------------------------------------------------------------------------------------------------------------ Variable Storage Display Value name type format label Variable label ------------------------------------------------------------------------------------------------------------------------------------------------------ u1 float %9.0g 1 u2 float %9.0g 2 u3 float %9.0g 3 u4 float %9.0g 4 u5 float %9.0g 5 u6 float %9.0g 6 u7 float %9.0g 7 u8 float %9.0g 8 u9 float %9.0g 9 u10 float %9.0g 10 u11 float %9.0g 11 ------------------------------------------------------------------------------------------------------------------------------------------------------ Sorted by: Note: Dataset has changed since last saved.
Code:
. findname u*, varl("*1*") u1 u10 u11
Code:
. findname u*, varl((@ >= 5 & @ <=9 )) u5
Code:
u5 u6 u7 u8 u9
Comment