Announcement

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

  • comparing coefficients over different time units

    hi,

    we are trying to compare coefficients over 2 regression models but are not sure how we should do that.
    this are our codes:
    xtreg radical_right import_shock country_year if year < 2002, fe cluster(id)
    xtreg radical_right import_shock country_year if year >= 2002, fe cluster(id)

    is there someone who could help us with our problem?
    we would like to compare the coefficients of import_shock.

    regards,
    Willem Berend van Bon


  • #2
    if I understand you correct, see
    Code:
    h suest
    be sure to read the help file carefully esp re: the use of "cluster" option

    Comment


    • #3
      Willem:
      as an aside to Rich's helpful advice, I would create a two-level categorical variable -i.year_2022- and plug it as a predictor in the right-hand side of my -xtreg,fe- equation.
      Then I would use:
      Code:
      mat list e(b)
      to retrieve the coefficients and -test- and -lincom- to compare them.
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment

      Working...
      X