I am working with a dataset that represents multiple healthcare clinics and their service areas at the census tract level. Many of the service areas overlap, so there are some "repeated" census tracts in the dataset. Each clinic has a unique ID, which is also attached to the CTs describing its service area.
I would like to summarize information about the service areas of these clinics in a separate dataset. For example, I want to convert the dataset of 90 census tracts representing the service area for one center into a row of figures (proportions) representing that one center.
Right now, I'm doing so manually -- working with a DO file that calculates the summary stats in Stata and inputting that info in a separate Excel file, where each row represents a clinic.
Is there a faster way to do this? I'm hoping there is syntax that will help me generate these summary stats in data tables systematically, rather than me doing it line by line.
Thank you!
I would like to summarize information about the service areas of these clinics in a separate dataset. For example, I want to convert the dataset of 90 census tracts representing the service area for one center into a row of figures (proportions) representing that one center.
Right now, I'm doing so manually -- working with a DO file that calculates the summary stats in Stata and inputting that info in a separate Excel file, where each row represents a clinic.
Is there a faster way to do this? I'm hoping there is syntax that will help me generate these summary stats in data tables systematically, rather than me doing it line by line.
Thank you!
Comment