My task is to check if seasonal variations exist in this dataset of hospital admissions/discharges. The columns start_ and end_datetimes refer to the admission and discharge times for each patient. I am not sure how to check for seasonality in Stata, as I'm fairly new to the language. Perhaps it would make sense to make a time-series line plot of admissions through time? Would I need to convert the dataset to a time-series using tsset? Please let me know what you think. Here is a sample of my data
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long id double(start_datetime end_datetime nicu_length_of_stay) 19040329 1577817919000 1578062267000 67.87444444444445 21888934 1585386262000 1585572412000 51.708333333333336 21889607 1592299141000 1594518629000 616.5244444444445 21889636 1593534616000 1593536696000 .5777777777777777 21889757 1599879496000 1600265733000 107.28805555555556 21889821 1601829782000 1601998078000 46.74888888888889 21891579 1628549623000 1628708634000 44.16972222222222 21892676 1639685261000 1639771746000 24.023611111111112 21892736 1640042628000 1640088653000 12.784722222222221 42792024 1547400884000 1547475142000 20.627222222222223 end format %tc start_datetime format %tc end_datetime
Comment