Announcement

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

  • ppmlhdfe doesnt't work because Stata claims reghdfe is not installed

    When I run ppmldhdfe, I get an error message saying "reghdfe not installed". Having checked I have installed all packages with dependencies (ftools, reghdfe + ppmlhdfe), Stata still tells me
    "ppmlhdfe requires the reghdfe package (version 6 or newer), which is not installed".

    If I then click on the "install from SSC" link, Stata assures me:

    "checking reghdfe consistency and verifying not already installed...all files already exist and are up to date."

    Yet ppmlhdfe still doesn't work and I get the same error message

    I have tried uninstalling all the packages and reinstalling them, but I encounter the same problem.

    Minimal working example below:

    Code:
     use "http://fmwww.bc.edu/RePEc/bocode/e/EXAMPLE_TRADE_FTA_DATA" if category=="TOTAL", clear
    egen imp = group(isoimp) egen exp = group(isoexp)
    ppmlhdfe trade lndistw, a(imp#year exp#year imp#exp) cluster(imp#exp)
    I am using Stata 16.1, and the following versions of the packages
    ftools: *! version 2.49.1 08aug2023
    reghdfe: *! version 6.12.3 08aug2023
    ppmlhdfe: *! version 2.3.0 25feb2021
    Last edited by Jon Lewis; 01 Sep 2023, 08:25. Reason: Split code over multiple lines

  • #2
    [Code split over multiple lines]

    Comment


    • #3
      Dear Jon Lewis,

      Is your version of Stata also uo-to-date? I use Stata 16.1 without any problem.

      Best wishes,

      Joao

      Comment


      • #4
        Hello all, I am new to Statalist and I’ve come to seek advice.
        I think I installed the ppmlhdfe package, but I do not know why it doesn’t work.

        when I check if ppmlhdfe installed completely, I found the results as follows

        ------------------------------------------------------------------------------
        . which ppmlhdfe
        C:\Users\starb\ado\plus\p\ppmlhdfe.ado
        *! version 2.2.0 02aug2019
        *! Authors: Sergio Correia, Paulo Guimarães, Thomas Zylkin
        *! URL: https://github.com/sergiocorreia/ppmlhdfe
        ------------------------------------------------------------------------------
        . ssc install ftools
        checking ftools consistency and verifying not already installed...
        all files already exist and are up to date.

        . ssc install reghdfe
        checking reghdfe consistency and verifying not already installed...
        all files already exist and are up to date.

        . ssc install ppmlhdfe
        checking ppmlhdfe consistency and verifying not already installed...

        the following files already exist and are different:
        C:\Users\starb\ado\plus\p\ppmlhdfe.ado
        C:\Users\starb\ado\plus\p\ppmlhdfe.sthlp
        C:\Users\starb\ado\plus\p\ppmlhdfe.mata

        no files installed or copied
        (no action taken)
        r(602);
        ------------------------------------------------------------------------------
        and when I enter a command, it appears as follows:


        . ppmlhdfe ImQ lnGDPi lnDISTij lnPOPi lnTARi lnPRODx NTM
        always_run_lsmr_preconditioner not found in class FixedEffects
        (278 lines skipped)
        (error occurred while loading ppmlhdfe.ado)
        r(3000);

        ------------------------------------------------------------------------------

        I'm not sure what the problem is. Any advice would be greatly appreciated. Please help.

        Comment


        • #5
          Dear geogia leo,

          Try the following

          Code:
          ssc install ppmlhdfe, replace
          update all
          Best wishes,

          Joao

          Comment

          Working...
          X