Does anyone know how to expand a dataset? I have been struggling for weeks now - can't figure this one out - hope there is someone out there who can help:
Original dataset:
Patient Date Days
TJones Sept.1/08 3
Desired dataset:
Patient Date Days
TJones Sept.1/08 1
TJones Sept.2/08 1
TJones Sept.3/08 1
So I need to identify those patients who stayed more than one day (where variable Days >1) and then, duplicate that record and modify the date and the days. The goal is to have one row per day. And the original data set is very large.
Any help would be appreciated.
Original dataset:
Patient Date Days
TJones Sept.1/08 3
Desired dataset:
Patient Date Days
TJones Sept.1/08 1
TJones Sept.2/08 1
TJones Sept.3/08 1
So I need to identify those patients who stayed more than one day (where variable Days >1) and then, duplicate that record and modify the date and the days. The goal is to have one row per day. And the original data set is very large.
Any help would be appreciated.