Announcement

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

  • Difference in rate differences

    Hello everyone,

    I am trying to do a DID analysis and difference in rate difference, where the rate is death rate (no of deaths/total number of infections) where death= 1/0

    before and after an introduction of a vaccine (timeperiod= 0 is before and 1 is after), where vaccine= 0/1 for two different counties A and B. For county B, the vaccine was never introduced.

    I have tried looking this up but most of the examples are based on differences in means. Also since my outcome of interest is death, the population is not the same across two the time periods.

    Below is how my dataset looks like

    county death infection vaccine timeperiod

    A . 1 . 1 . 1 1
    B . 1 . 1 0 1
    A . 0 . 1 1 1
    A . 0 . 1 1 1
    B . 0 . 1 0 1
    A . 1 . 1 0 0
    B 1 1 0 0

    Please let me know if more I can clarify this further.

    Appreciate your help

  • #2
    Post update: the reg command worked, I had the interaction term mixed up

    Comment

    Working...
    X