Announcement

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

  • ITSA for multiple groups

    Hello everyone, I am running an Interrupted Time Series Analysis (ITSA) in which I compare the monthly notifications during three time periods (2019- 2021m5; 2021m5-2021m10; 2021m10 2023m3).
    The data is from five separate counties, I would like for all of them to be shown in one graph, does anyone know how I can best accomplish this?

    Code
    tsset date_reg_monthly, monthly
    itsa notification, trperiod (2021m5; 2021m10) posttrend figure

    So far I have only been able to run separate ITSAs by county. When I run the tsset command, I need to choose one county, otherwise I have multiple values per timeperiod (table shows how data is ordered).
    Help is very appreciated!
    county date_reg_monthly notification
    1 704 10
    2 705 73
    3 705 117
    4 705 116
    5 705 5
    1 706 81
    2 706 130
    3 706 107
Working...
X