Hi! I have a dataset including ppl's information in the group of family (each observation has a pid variable for family id) and I want to drop all familie if there is no teenages in that family (var age<=18). in that family. Should I use for each and loop, if then how? Thx!
0 Response to How to generate a value for groups of distinct value of a variable and then drop subgroups based on the value generated?
Post a Comment