MEAN GROUP [MG], POOLED MEAN GROUP [PMG] & DYNAMIC FIXED EFFECTS (DFE) ESTIMATORS IN STATA

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 10

  • @mha8252
    @mha8252 8 місяців тому

    Well explained in a very clear and comprehensive manner

  • @uzmaabubakar3239
    @uzmaabubakar3239 8 місяців тому +1

    😊

  • @sarahahmedchawsheen5455
    @sarahahmedchawsheen5455 4 місяці тому

    Hi Dr. Bilal, I have a question please. In case if some of my variables were stationary at first difference should I write "d." beside it everywhere in the "xtpmg" command? Because when do so, it gives more significant variables for the p-values. Thanks in advance.

    • @drbilalmehmood206
      @drbilalmehmood206  4 місяці тому +1

      Hi, introducing difference operator should not be led by temptation of desired results. Rather by logic and the logic is correct that they need to be differenced. And using the d. operator is correct syntax to do it. Good Luck

    • @s.ch.2190
      @s.ch.2190 4 місяці тому

      Okay thanks.

  • @BFBF-pc5th
    @BFBF-pc5th 5 місяців тому

    Hi, thanks for sharing. I faced a problem in running mg. The stata error msg shows "variable name EC is in the list of predictors" . May I know how to solve this?

    • @drbilalmehmood206
      @drbilalmehmood206  5 місяців тому

      delete all variables in Variables window of stata with names like _est_MG, _est_mg, _est_PMG, _est_pmg, _est_rDFE and _est_DFE.
      Assuming that dependent variable is x and independent variable is y, then you can run all of the following commands to get results of MG, PMG and DFE, in on go:
      xtpmg d.y d.x, lr(l.y x) ec(EC) replace mg
      xtpmg d.y d.x, lr(l.y x) ec(EC) replace pmg
      hausman mg pmg, sigmamore
      xtpmg d.y d.x, lr(l.y x) ec(EC) replace dfe
      hausman mg DFE, sigmamore

    • @BFBF-pc5th
      @BFBF-pc5th 5 місяців тому

      @@drbilalmehmood206 Dear Dr Bilal, Thank you for your courteous response. Even after removing that variable, the same error message show
      : "invalid new variable name; variable name __ec is present in the list of predictors." and r(110).

    • @drbilalmehmood206
      @drbilalmehmood206  4 місяці тому

      you may consider sharing the data on my email