Hi, i would like to calculate the proportion in hospital at any particularly time over-follow-up for my sample. I have dates of entry and exit from hospital and potential multiple dates per person. At the moment, the data are in wide format:
ID, date_entry1, date_exit1, date_entry2, date_exit2 etc.
with date_entryN or date_exitN missing for those with N-1 admissions
I would like to calculate the porportion in hospital at any one day, for each day in the observation period - can anybody please advise?
Thanks,
Matt
ID, date_entry1, date_exit1, date_entry2, date_exit2 etc.
with date_entryN or date_exitN missing for those with N-1 admissions
I would like to calculate the porportion in hospital at any one day, for each day in the observation period - can anybody please advise?
Thanks,
Matt
Comment