Hi, I have a long hospital dataset that I need to link to another long dataset to combine information about a group of patients. The hospital dataset has admission date/time and discharge date/time and I have created a lag to show when there is a separation between one episode discharge date and the subsequent admission date of greater than one day. I now need to make this dataset 'wide' (not long to wide I think) - in order to then link it to the second dataset. Could anyone assist please? Thanking you.
Related Posts with Creating episodes within hospital data
Simultaneously run through two forvalues loopsDear statalist, I'm trying to program the following commands more mechanically: Code: rename inte…
Adding options to a package (.ado)Hi everyone, I have written a code to run the LFK index (Int J Evid Based Healthc. 2018 Dec;16(4):1…
BetaregHi all, I have a propotion dependent variable that’s greater than zero and less then one. The mean …
Rename variables to remove part of the textDear Statalists, I have the following variables and would like to rename them to remove untitled###…
ivreg, ivprobit and biprobit which one to use? (any theoretical reasoning?)As I do not have any econometric background I find it difficult to understand which one to use when …
Subscribe to:
Post Comments (Atom)
0 Response to Creating episodes within hospital data
Post a Comment