Announcement

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

  • Panel data OLS regression how to create dummies for sub periods?

    Hi, I am currently working on my Master's thesis. I have some troubles regarding how to create dummies for sub periods. My data set consists on three Chinese provinces from 1997 to 2006. I am interested to see how the determinants of FDI change from the years that precede China's accession to WTO (before 2001) and after. Any suggestion?

  • #2
    Francesca:
    welcome to the list.
    Your query is not that clear (please, read the FAQ, especially about how to post more effectively. Thanks).
    That said, to create the predictor you're interested in, you can try:
    Code:
    gen WTO=0 if year<2000
    replace WTO=1 if year>=2001
    label define WTO 0 "before_WTO" 1 "after_WTO"
    label val WTO WTO
    For more on creating categorical variables and interactions, I point you out to -help fvvarlist-.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Thank you so much, it is actually everything I need to know!

      Regards,
      Francesca


      Comment

      Working...
      X