Announcement

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

  • Poisson PML estimator

    Hi there!

    I would like to do a Poisson PML estimator on STATA but I can't seem to find the command for this?

    Thanks!!

    Best,

    Joseph

  • #2
    Dear Joseph,

    Stata build in command for PPML is -poisson- command. But -ppml- command written by Santos Silva is much better.
    For (panel data) with fixed effects, consider -xtpoisson- -xtpqml- -poi2hdfe- commands.

    Type on stata;

    Code:
    help poisson
    ssc install ppml
    help ppml
    help xtpoisson
    ssc install poi2hdfe
    help poi2hdfe
    ssc install xtpqml
    help xtpqml
    Also visit to http://personal.lse.ac.uk/tenreyro/LGW.html page.

    Best,
    Dias
    Last edited by Said Jafar; 05 Feb 2016, 11:18.

    Comment


    • #3
      Hi Dias!

      Thanks a lot for you reply!!

      If I am looking at the impact of the introduction of the EURO on the flow of migration (panel data) which one would you recommend I use?

      Thanks again!!

      Best Regards,

      Joseph


      Comment


      • #4
        Dear Joseph,

        I have newly started to use ppml commands and never applied it for migration flows. But it greatly depends on your research question. -ppml- would be better if you do not include fixed effects. xtpoisson and poi2hdfe are better for fixed effects. Pls go over the Log of Gravity page and you will find some more details.

        Best,
        Dias

        Comment


        • #5
          Thank you Dias!

          Comment


          • #6
            Hi Dias!

            I am hesitating to use xtreg or xtpoisson

            Could I ask you in which situation should I use one and the other?

            Thank you very much!

            Best Regards,

            JD

            Comment


            • #7
              Dear Dupont,

              xtreg is for normal linear regressions. xtpoisson is superior to xtreg for handling zero trade/migration flows. Pls visit the said page for more info on ppml.

              Best,
              Dias

              Comment


              • #8
                Hi dias!

                I just have one last question: I am looking to use ppml fixed effects, is the command for this xtpqml? or xtpoisson?

                Thanks!!

                Best,


                Joseph

                Comment


                • #9
                  Joseph,

                  This is from -xtpqml help- file:
                  xtpqml is simply a wrapper for the xtpoisson command that computes robust standard errors.
                  To my knowledge, this info is outdated as xtpoisson can compute robust standard errors as well, by adding vce(r) option. So, it seems xtpoisson is superior.

                  All the best

                  Comment


                  • #10
                    Hi Dias!

                    I just have one question for this topic! If I wanted to use PPML Fe, I have to do xtpoisson?

                    Thanks!

                    Best,

                    Luka

                    Comment


                    • #11
                      Hi Luka.

                      Not necessarily. poi2hdfe, xi:ppml can also be used. Note that xtpoisson includes pair fixed effects by default.

                      Best

                      Comment


                      • #12
                        Dear Dias,
                        If I want to use PPML for panel, how to write the command?
                        Thanks,
                        Best Regards,

                        Meng

                        Comment


                        • #13
                          Dear Meng,

                          It depends on which code u are using. But in all cases u will need to -xtset- your data. With ppml command, i would be like

                          Code:
                          ppml depended_var  indep_var1  indep_var2 ...  , cluster(your_panel_var)
                          Also visit to http://personal.lse.ac.uk/tenreyro/LGW.html page.

                          Best

                          Comment


                          • #14
                            Dear Dias,

                            Thank you for your reply, I just want to make it sure that if I have written the right code. My denpend_var is in country-sector-year form, there ar 66 countries, and 20 manufacuring industries in 2-digit SIC code from 2006-2014. But my care is only about the China's outwards FDI (OFDI) to 66 countries, and I try to find out the diterminants of China's OFDI. so I write the stata commands as below.

                            egen id=group(countrycode sic2digit)

                            xtset id year

                            ppml ofdi lndist contig lngdp lnchngdp countryskill industryskill countryskillindustryskill countryrdpeople industry_rdintensity countryrdindustryrd bits fta cu economicfreedomindex financedevelopment, cluster(id)

                            Is it right?



                            Comment


                            • #15
                              Dear Meng,

                              The code itself looks right to me.

                              All the best,
                              Dias

                              Comment

                              Working...
                              X