I have a dataset with procedures performed by type (type), per hospital code (cnes) and year (year). I have different rows of a same type of procedure, same year and same hospital as I am dealing with microdata. I would like to know the number of different hospitals that offer the procedures by type and year.
I can do so with the codebook variable, as below. However, how could I do so collapsing my dataset by type and year?
I can do so with the codebook variable, as below. However, how could I do so collapsing my dataset by type and year?
Code:
codebook cnes if type==1 & year==1999 codebook cnes if type==2 & year==2000
Comment