Hi All,
My organization offer sexual health classes to adolescent in rural communities. We have doing this for almost 5 years. We have offered many sessions per year. I would like to know how many session we have offered per year. So in year 1, we offered 2 session and in year 3 we offered 3 sessions. Below if a extract of my data. I was playing with the system variables -n and _N but I was not successful (by year: generate Nsession =session[ _N])
Thank you,
Marvin
My organization offer sexual health classes to adolescent in rural communities. We have doing this for almost 5 years. We have offered many sessions per year. I would like to know how many session we have offered per year. So in year 1, we offered 2 session and in year 3 we offered 3 sessions. Below if a extract of my data. I was playing with the system variables -n and _N but I was not successful (by year: generate Nsession =session[ _N])
ID | Session | Year |
100 | 1 | 1 |
101 | 1 | 1 |
102 | 2 | 1 |
103 | 2 | 1 |
104 | 3 | 2 |
105 | 3 | 2 |
106 | 4 | 2 |
107 | 4 | 2 |
108 | 5 | 2 |
Marvin
Comment