Hi, I have a whole bunch of accounts and I'm trying to find out when the first accident indicator happened from a series of clumns. I can show better below what I mean. I have 100K accounts and each account has flag_1 .. flag_2... up to flag_13. And there is a 0 or a 1 depending when the accident happened. So if the first accident happened in month 1 from the observation period then flag_1 = 1, else 0.. if the accident happened from 3 months form the observation period then flag_3 = 1, else 0. It is possible that one accont has more then 1 flag = 1, depending if they had more than 1 accident.. in total it iss possible to have13 one's. I'm trying to count how many first 1's did it happen for flag_1, and how many first one's for flag_2, and so on to flag_13. Thanks.
... View more