Hello,
I am trying to count the number of variables that use the same stub and verify that there are at least two such variables.
I want to do something like:
ds stub*
I know this will then return the the number of variables so named in r(varlist).
Can anyone tell me how I can then check if there are at least two elements in the list?
Or perhaps there is a better way of doing this?
Regards,
John L.
I am trying to count the number of variables that use the same stub and verify that there are at least two such variables.
I want to do something like:
ds stub*
I know this will then return the the number of variables so named in r(varlist).
Can anyone tell me how I can then check if there are at least two elements in the list?
Or perhaps there is a better way of doing this?
Regards,
John L.
Comment