Announcement

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

  • repeated time values within panel

    Dear All,

    I have a panel data set. I created both PANEL ID and Time ID. As required, the time ID's are all integers. However when I am going for tsset - every time it is giving the error - "repeated time values within panel".

    I checked for duplicates using "duplicates report" and it reported 0 surplus indicating all values are unique.

    Can you let me know how to fix this? And or what mistake I am doing. Thanks in advance,

    ~Subaran.

  • #2
    Subaran:
    welcome to this forum.
    If you do not have genuine duplicates to be deleted and you do not plan to use time-series commands, such as lags and leads, you can simply -xtset- your data with the -panelid- only:
    Code:
    xtset panelid
    Kind regards,
    Carlo
    (Stata 18.0 SE)

    Comment


    • #3
      Thanks Carlo.

      But I do need to use lags in my analysis. Any help will be much appreciated. Thanks,

      ~Subaran.

      Comment


      • #4
        Subaran:
        you may try to define a different -panelid- to work this nuisance around.
        Otherwise, I see no way out.
        Kind regards,
        Carlo
        (Stata 18.0 SE)

        Comment


        • #5
          Carlo:

          Thanks a lot. It worked!!!

          Subaran.

          Comment


          • #6
            Again the problem is back!! Suddenly...created another new Panel ID.....ANY SUGGESTION???

            Comment

            Working...
            X