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
m:1 merge | r(9) code halting do fileHello all, I have a do file with a m:1 merge merging in mutation characteristics (missense mutation…
Dummy variablesPlease I'm very new to using stata, and I want to create dummy variable for values of 0-1 in equal h…
Questions about recoding in panel dataHi there! I have a problem in recoding the panel data. As you can see below, this panel data describ…
Bootstrapping standard errors for two-stage program combining cross-sectional and panel dataI have two samples from different populations from which I am conducting a two-stage estimation proc…
Best way to mark a sample containing the balanced panel of observations with nonmissing data.I'm trying to mark a sample for a user program such that the sample is a balanced panel given certai…
Subscribe to:
Post Comments (Atom)
0 Response to Creating episodes within hospital data
Post a Comment