Hi all,
I tried the following code:
bys screener_ssn_nbr (date_num): egen count_screenin_screener=count(call_accept==1)
Basically, I want something that counts how many times call_accept=1 by each date for an individual with a certain id. However, this code doesn't quite work. (Call_accept is a 0 or 1 variable). This code seems to count how many times call_accept occurs (0 or 1) and doesn't even count it for the date specifically, does it in total.
CAn you assist?
Thanks!
I tried the following code:
bys screener_ssn_nbr (date_num): egen count_screenin_screener=count(call_accept==1)
Basically, I want something that counts how many times call_accept=1 by each date for an individual with a certain id. However, this code doesn't quite work. (Call_accept is a 0 or 1 variable). This code seems to count how many times call_accept occurs (0 or 1) and doesn't even count it for the date specifically, does it in total.
CAn you assist?
Thanks!
Comment