Hello I am having a trouble in doing some analysis with stata.
The variables are
hospitalid : unique hospital id
emrvendor: name of emr software
emrfunctions: name of application
rural: if hospital is located in rural area =1 otherwise =0
Hospitals can utilize different EMR vendors for different emrfunctions.
1) Frequency table of numbers of emr vendors used per hospital
I would like to calculate the number of emr vendors per each unique hospital and show the frequency table.
what i did is
egen tag_emrvendor=tag(hospitalid emrvendor)
bysort hospitalid: egen n_vendors=total(tag_vendor)
But I can't make the frequency table which shows the number of vendors used per hospital
2) EMR functions that a different emrvendor is used per hospital
If a hospital is using different vendors for certain emrfunctions, I would like to show which function goes to different vendors. most frequent functions that hospital is using different vendors.
Could you please help me in this? Please...
The variables are
hospitalid : unique hospital id
emrvendor: name of emr software
emrfunctions: name of application
rural: if hospital is located in rural area =1 otherwise =0
Hospitals can utilize different EMR vendors for different emrfunctions.
1) Frequency table of numbers of emr vendors used per hospital
I would like to calculate the number of emr vendors per each unique hospital and show the frequency table.
what i did is
egen tag_emrvendor=tag(hospitalid emrvendor)
bysort hospitalid: egen n_vendors=total(tag_vendor)
But I can't make the frequency table which shows the number of vendors used per hospital
2) EMR functions that a different emrvendor is used per hospital
If a hospital is using different vendors for certain emrfunctions, I would like to show which function goes to different vendors. most frequent functions that hospital is using different vendors.
Could you please help me in this? Please...
Comment