Announcement

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

  • area specific linear time trend coding

    the data is monthly level data.

    Coding of the time index variables are as follows:

    Year: 2005-2018
    Month: 1-12
    Year_Month: 1-168
    Year_sequence: 1-14
    Month_sequence: 1-12

    I expect that each area has specific trend. How to control for area specific trend (linear)?


    Code:
    xtset area_id Year_Month
                xtreg Y X  ??????, fe r



    Thanks!!!!

  • #2
    Is the below one good???

    Code:
    xtset area_id Year_Month
                xtreg Y X i.Year i.Month c.Year_Month#i.area_id

    Or this one:


    Code:
                xtset area_id Year_Month
                xtreg  Y X  c.Year_Sequence#i.area_id  c.Month_Sequence#i.area_id
    To approve a single suggestion, mouse over it and click "✔"
    Click the bubble to approve all of its suggestions.

    Log in
    to use Ginger

    Limited mode
    [CODE] [
    ×

    Comment

    Working...
    X