Announcement

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

  • how to perform seasonal adjustment with tssmooth?

    Hi everyone,
    I want to seasonaly adjust a variable with​ tssmooth.

    I typed

    Code:
    tssmooth s gdp_season=gdp,per(4)
      tsline gdp_season gdp
    And the result is shown is the following figure. The adjusted data is almost the same as the original one. How could I do?

    Graph.eps

    The data is in the attachment. Can anyone help me?
    Attached Files

  • #2
    http://davegiles.blogspot.com.co/201...om-quandl.html

    Comment


    • #3
      somehow i cannot open the link……

      Comment


      • #4
        This looks like spam since the link says something about flowers for mom when I hover over it.
        Stata/MP 14.1 (64-bit x86-64)
        Revision 19 May 2016
        Win 8.1

        Comment


        • #5
          We can confirm that the link above is not spam and is statistical (seasonal price adjustments for flowers around Mother's Day) in nature.

          Comment


          • #6
            Is not spam. The general idea of the S.A. procedure using tssmooth is to obtain the trend of the time series, then substract that trend from the original series (if it is assumed an addtive component, the best is to take logs of the series to make sure of this), then with the cycle component obtain seasonal factors by averaging the cycle component for each month, quarter, etc, then just substract the seasonal factors to the original time series.

            The trend component is usually obtained by a moving average of order 11, and to force the seasonal factors to have zero mean you can estimate the mean of the seasonal factors and then just substract the mean from them.

            This is the basic idea of any seasonal adjustment procedure.

            Best regards,

            Comment

            Working...
            X