Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to graph this (Numbers of Hospitalizations vs. date_time)?

    I have a dataset in this format, and I want to make a graph based on this dataset with the time on the horizontal axis and the number of hospitalizations on the vertical axis, how do I write the command in Stata?
    PATIENT_ID VISIT_ID DEPT_ADMISSION_TO ADMISSION_DATE_TIME DEPT_DISCHARGE_FROM DISCHARGE_DATE_TIME
    81152795 1 210601 2010/6/1 2:05 210601 2010/6/4 14:48
    80602068 1 210601 2010/6/1 2:23 210601 2010/6/9 10:51
    80851383 3 210702 2010/6/1 6:39 210702 2010/6/19 8:46
    81005178 4 311101 2010/6/1 7:14 311101 2010/6/8 9:22
    81107078 1 221201 2010/6/1 7:18 221201 2010/6/12 8:09
    80031182 2 220902 2010/6/1 7:33 220902 2010/6/4 9:58
    6026475 2 220901 2010/6/1 7:35 220901 2010/6/8 9:06
    1075774 4 210301 2010/6/1 7:40 220902 2010/6/16 9:51
    80588378 1 220201 2010/6/1 7:40 220201 2010/6/18 8:28
    80858100 1 210402 2010/6/1 7:50 210401 2010/6/19 8:03
    6042775 1 220103 2010/6/1 7:51 220103 2010/6/8 10:42
    80598728 13 220701 2010/6/1 7:57 220701 2010/6/15 10:32
    81107632 2 221201 2010/6/1 8:01 221201 2010/6/6 8:07
    80988968 1 221201 2010/6/1 8:08 221201 2010/6/8 8:21
    80858841 1 220701 2010/6/1 8:10 220701 2010/6/16 8:41
    80443300 1 220601 2010/6/1 8:22 220601 2010/6/8 15:54
    81096143 1 220101 2010/6/1 8:27 220101 2010/6/4 10:34
    81152810 1 210301 2010/6/1 8:27 210301 2010/7/1 9:20
    80985939 1 221201 2010/6/1 8:36 221201 2010/6/3 8:21
    80744123 1 220901 2010/6/1 8:39 220901 2010/6/8 8:14
    81145542 1 220902 2010/6/1 8:42 220902 2010/6/26 12:08
    1073400 4 220701 2010/6/1 8:45 220701 2010/6/11 8:31
    81152776 1 221101 2010/6/1 8:51 221101 2011/1/24 15:13
    81145276 1 220901 2010/6/1 9:02 220901 2010/6/7 14:54
    6028754 5 211001 2010/6/1 9:05 211001 2010/7/1 7:59
    811522666 1 211601 2010/6/1 9:09 211601 2010/7/3 9:06
    1046871 3 210902 2010/6/1 9:20 210902 2010/6/14 7:56
    81145553 1 220701 2010/6/1 9:23 220701 2010/6/18 10:35
    80723522 1 210401 2010/6/1 9:24 210401 2010/6/13 8:47
    81145552 1 220701 2010/6/1 9:24 220701 2010/6/18 10:35
    70043450 1 221201 2010/6/1 9:26 221201 2010/6/8 8:24
    2004145 2 211002 2010/6/1 9:26 211002 2010/6/29 10:44
    80950008 4 220902 2010/6/1 9:29 220902 2010/6/4 9:11
    80830413 1 221201 2010/6/1 9:34 221201 2010/6/8 8:04
    1074696 4 210103 2010/6/1 9:36 210103 2010/6/18 8:10
    81138015 1 221201 2010/6/1 9:44 221201 2010/6/4 8:33
    81152664 1 220101 2010/6/1 9:46 220101 2010/6/4 11:07
    81145923 1 210601 2010/6/1 9:49 210601 2010/6/4 10:33
    81152769 1 220601 2010/6/1 9:52 220601 2010/6/24 9:05
    510224 1 210101 2010/6/1 9:52 210101 2010/7/12 15:04
    80621565 8 211301 2010/6/1 9:59 211301 2010/7/22 11:06
    81053638 1 221201 2010/6/1 10:02 221201 2010/6/9 8:54
    81145634 1 220101 2010/6/1 10:04 220101 2010/8/11 8:14
    81283065 1 221201 2010/6/1 10:10 221201 2010/6/8 9:59
    81152748 1 210901 2010/6/1 10:13 210901 2010/6/8 9:19
    80748597 2 210103 2010/6/1 10:18 210103 2010/6/10 10:43
    80885820 3 210601 2010/6/1 10:21 210601 2010/6/8 10:57
    81152686 1 210703 2010/6/1 10:25 210703 2010/6/12 8:31
    510186 3 220902 2010/6/1 10:37 220902 2010/6/9 15:31
    80979888 1 210103 2010/6/1 10:38 210103 2010/7/3 7:51
    81152659 1 210601 2010/6/1 10:42 210601 2010/6/2 16:03
    80950746 3 210902 2010/6/1 10:44 210902 2010/6/11 8:35
    1087887 3 220201 2010/6/1 10:57 220201 2010/6/12 10:25
    80767391 1 211701 2010/6/1 10:58 211701 2010/6/18 10:20
    6047611 1 210701 2010/6/1 10:59 210701 2010/6/11 8:02
    81283186 1 220701 2010/6/1 11:02 220701 2010/6/26 9:12
    81152660 1 210701 2010/6/1 11:03 210701 2010/6/26 11:52
    81145986 1 220101 2010/6/1 11:11 220101 2010/6/4 14:47
    80258659 2 220902 2010/6/1 11:14 220902 2010/6/11 10:02
    81145935 1 210601 2010/6/1 11:18 210601 2010/6/7 10:25
    81152657 1 311101 2010/6/1 11:29 210902 2010/8/25 7:59
    81129660 2 210402 2010/6/1 11:33 210401 2010/6/18 9:03
    80739705 1 220101 2010/6/1 11:34 220101 2010/6/3 8:20
    81138294 1 210301 2010/6/1 11:40 210301 2010/6/10 9:58
    81152653 1 220901 2010/6/1 11:51 220901 2010/6/20 8:44
    10103800 2 220902 2010/6/1 11:57 220902 2010/6/29 14:23
    81152646 1 220902 2010/6/1 12:38 220902 2010/7/12 16:33
    81146038 1 220104 2010/6/1 13:23 220104 2010/6/19 8:25
    81283151 1 220701 2010/6/1 14:00 220701 2010/6/9 10:00
    80607105 2 220701 2010/6/1 14:07 220701 2010/6/11 9:37
    80211043 1 210103 2010/6/1 14:13 210103 2010/6/21 15:30
    81152773 1 210902 2010/6/1 14:22 210901 2010/6/12 10:43
    70023040 1 210301 2010/6/1 14:25 210301 2010/6/14 8:00
    80800596 2 220103 2010/6/1 14:27 220103 2010/7/2 8:23
    6034286 1 220601 2010/6/1 14:28 220601 2010/6/14 10:37
    81282336 1 210701 2010/6/1 14:30 210701 2010/6/11 10:07
    81072600 1 221201 2010/6/1 14:42 221201 2010/6/9 9:43
    80597712 3 210403 2010/6/1 14:45 210403 2010/6/8 8:50
    81152775 1 211601 2010/6/1 14:52 211601 2010/6/24 9:04
    81283066 1 211004 2010/6/1 14:58 211004 2010/6/7 14:27
    80745019 1 210701 2010/6/1 15:01 210701 2010/6/21 10:39
    81283279 1 220901 2010/6/1 15:03 220901 2010/6/9 8:03
    80985823 1 221201 2010/6/1 15:12 221201 2010/6/11 8:06
    81144096 1 220104 2010/6/1 15:21 220104 2010/6/15 10:25
    81152642 1 220101 2010/6/1 15:36 220101 2010/6/25 8:13
    81043238 1 220201 2010/6/1 15:39 220201 2010/6/9 8:17
    81031021 2 220102 2010/6/1 15:44 220102 2010/6/9 10:36
    81043213 1 220201 2010/6/1 15:56 220201 2010/6/10 11:08
    6028708 3 211002 2010/6/1 15:57 211002 2010/6/13 8:01
    80993093 2 210402 2010/6/1 16:18 210401 2010/6/18 10:27
    81152643 1 220103 2010/6/1 16:22 220103 2010/6/23 9:31
    81280016 1 311101 2010/6/1 17:05 311101 2010/7/6 11:09
    81142938 1 210703 2010/6/1 17:19 210701 2010/6/24 8:27
    80963586 1 220902 2010/6/1 17:53 220902 2010/6/4 8:38
    81152668 1 210702 2010/6/1 18:24 210702 2010/6/21 9:31
    80987328 1 210601 2010/6/1 18:37 210601 2010/6/8 11:32
    80989748 1 210901 2010/6/1 19:14 210902 2010/6/7 11:15
    81152788 1 221101 2010/6/1 19:35 221101 2010/6/18 8:49
    81151664 1 2215 2010/6/1 19:46 2215 2010/7/2 7:20
    81152730 1 210402 2010/6/1 20:29 210403 2010/6/10 9:08
    6029455 1 211001 2010/6/1 22:26 211001 2010/6/8 8:26
    80752244 1 221201 2010/6/1 22:31 221201 2010/6/5 9:50
    81152727 1 221101 2010/6/1 23:35 221101 2010/6/8 9:27
    81152728 1 220104 2010/6/2 0:07 220104 2010/6/18 9:23
    81152722 1 220104 2010/6/2 2:07 220104 2010/6/2 11:11
    80791178 2 221201 2010/6/2 6:22 221201 2010/6/8 8:21
    80754055 1 221201 2010/6/2 6:24 221201 2010/6/25 8:21
    81090929 1 221201 2010/6/2 7:33 221201 2010/6/5 8:21
    80984224 6 210201 2010/6/2 7:55 210201 2010/7/3 8:32
    81144095 1 220701 2010/6/2 8:00 220701 2010/6/4 8:48
    6046724 3 220902 2010/6/2 8:00 220902 2010/6/7 10:30
    80912434 4 211701 2010/6/2 8:00 211701 2010/6/16 9:42
    1024733 1 221201 2010/6/2 8:10 221201 2010/6/7 11:20
    80759070 3 210201 2010/6/2 8:13 210201 2010/6/12 16:11
    81140958 1 220201 2010/6/2 8:15 220201 2010/6/13 8:49
    1091327 2 210701 2010/6/2 8:22 210701 2010/6/12 9:06
    81282424 1 220103 2010/6/2 8:43 220103 2010/7/3 11:22
    81131498 2 221201 2010/6/2 8:49 221201 2010/6/17 9:51
    81119257 1 210701 2010/6/2 8:55 210701 2010/6/11 11:26
    81106143 1 221201 2010/6/2 9:02 221201 2010/6/8 8:05
    81152900 1 211004 2010/6/2 9:05 211004 2010/6/12 15:05
    2004548 1 211003 2010/6/2 9:24 211003 2010/6/6 9:05
    80287833 4 211301 2010/6/2 9:27 211301 2010/7/15 8:07
    10101507 7 210901 2010/6/2 9:29 210901 2010/6/18 10:22
    80374762 12 210401 2010/6/2 9:31 210401 2010/6/25 8:52
    80022285 2 221201 2010/6/2 9:32 221201 2010/6/5 9:04
    70004130 1 220104 2010/6/2 9:41 220104 2010/6/14 11:25
    80857933 2 210103 2010/6/2 9:47 210103 2010/6/12 14:33
    6051257 2 220901 2010/6/2 9:49 220901 2010/6/11 8:53
    80827906 3 210402 2010/6/2 9:53 210401 2010/6/10 9:02
    80983901 1 221201 2010/6/2 9:56 221201 2010/6/10 16:40
    6038650 3 220901 2010/6/2 10:01 220901 2010/6/12 8:23
    81145975 1 220104 2010/6/2 10:03 220104 2010/7/9 8:58
    81121018 9 210601 2010/6/2 10:08 210601 2010/6/7 14:55
    1041799 2 221201 2010/6/2 10:11 221201 2010/6/13 8:04
    81145850 1 210103 2010/6/2 10:14 210103 2010/6/21 8:43
    81143259 1 210701 2010/6/2 10:16 210701 2010/6/8 9:13
    80836058 1 221001 2010/6/2 10:21 221001 2010/6/10 15:00
    81283217 1 220102 2010/6/2 10:27 210101 2010/7/15 8:24
    81280900 2 220104 2010/6/2 10:33 220104 2010/6/4 10:34
    81145309 1 210702 2010/6/2 10:36 210702 2010/6/13 16:38
    80878396 2 210702 2010/6/2 10:37 210702 2010/6/11 9:01
    81140965 1 220901 2010/6/2 10:40 220901 2010/6/21 9:40
    81141696 1 220102 2010/6/2 10:42 220102 2010/6/13 9:34
    81145827 1 220104 2010/6/2 10:44 220104 2010/7/2 9:44
    80667850 6 211601 2010/6/2 10:50 211601 2010/6/14 8:04
    80858231 1 210101 2010/6/2 11:03 210101 2010/6/11 14:04
    2002979 6 211002 2010/6/2 11:07 211002 2010/6/17 9:25
    80990524 9 220902 2010/6/2 11:15 220902 2010/7/8 9:18
Working...
X