Announcement

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

  • Conducting Panel Regressions with Region specific Dummies

    Hello everyone!

    This is my first post here so I hope to follow the proper netiquette here.

    I'm currently trying to run a panel regression on Stata/SE 17.0 and am running into some problems. My goal is to estimate the influence innovation variables on the GDP of countries. I want to group 38 countries into three different regions {1,2,3} and want to conduct a panel regression along these regions. When I use the following code:

    Code:
    xtset regionID yearID
    I get the response:
    Code:
    repeated time values within panel
    I understand what the problem is but I am not sure how to circumvent it. Do you have an idea?

    Kind regards

    Lasse Steffens

  • #2
    Lasse:
    welcome to this forum.
    If you do not plan to use time-series operators, you can simply -xtser- your dataset with -panelid- only:
    Code:
    xtset regionID
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Lasse:
      welcome to this forum.
      If you do not plan to use time-series operators, you can simply -xtser- your dataset with -panelid- only:
      Code:
      xtset regionID
      Thank you very much, Carlo!

      Comment


      • #4
        In addition to Carlo's great advice, try running this:

        Code:
        duplicates report regionID time
        duplicates list regionID time
        duplicates tag regionID time, gen(isdup) 
        edit if isdup 
        drop if isdup==1
        drop isdup

        Comment

        Working...
        X