Hi everyone, I have a SAS table with the variable "target" which has only two possible values: 0 and 1. I want to build groups, starting from the first line, so that each group has at least 30 values 1 of "target" and so that each group has at least 2000 rows. So, if f.e. in the first 2000 rows I already have 30 values 1 of "target", the first 2000 rows would build the first group. If not, I have to take more rows in the first group. And so on. Does anybody has an Idea how to do it? Thanks in Advance Denis
... View more