In my data set, I have a variable called "STATEID" which identifies the state to which the respondent belongs. Is there a command which I can use to do various functions within a subgroup identified by STATEID=n