Hi everyone,
I am working with a large healthcare administrative database. As it is, the database is organized by a unique patient encounter ID# which constitute each row. Associated with each encounter are a number of variables, which define the number of columsn in this dataset. These variables/columns include information for surgery type, treating physician, complications, treating hospital characteristics (size, location, etc) and so on.
I want to restructure the database so that rather than each row being defined by the specific patient encounter ID, I use a unique physician ID instead. Basically turning this database a physician-based dataset rather than a patient-based dataset so that I can describe surgeon trends.
I've been using the collapse function to this point though it's pretty cumbersome. Does anyone know of any alternative functions that could point me to? Thank you!
I am working with a large healthcare administrative database. As it is, the database is organized by a unique patient encounter ID# which constitute each row. Associated with each encounter are a number of variables, which define the number of columsn in this dataset. These variables/columns include information for surgery type, treating physician, complications, treating hospital characteristics (size, location, etc) and so on.
I want to restructure the database so that rather than each row being defined by the specific patient encounter ID, I use a unique physician ID instead. Basically turning this database a physician-based dataset rather than a patient-based dataset so that I can describe surgeon trends.
I've been using the collapse function to this point though it's pretty cumbersome. Does anyone know of any alternative functions that could point me to? Thank you!

Comment