Announcement

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

  • #16
    Dear LP-DID authors,

    I keep getting the error message: "class FixedEffects undefined"

    What is going wrong here?

    PS: I am using your example data "http://fmwww.bc.edu/repec/bocode/l/lpdidtestdata1.dta" and example code "lpdid Y, unit(unit) time(time) treat(treat) pre_window(5) post_window(10)" from the help file.

    Comment


    • #17
      I fixed it: "reghdfe, compile" did the trick

      Comment


      • #18
        Hi,

        I am using LP-DiD package and want to check if there is a way one can change the level of the confidence interval. I did not come across any such option in the help file.

        Thanks

        Comment


        • #19
          the following is a quote from the help file:
          level(#) Significance level for confidence intervals, default is 95.
          this seems to clearly say that you are allowed to change the level

          Comment


          • #20
            Originally posted by Rich Goldstein View Post
            the following is a quote from the help file:

            this seems to clearly say that you are allowed to change the level
            Thank you. I missed it.

            Comment


            • #21
              Hi, I have a clarification question.

              Does the LP-DiD work for the sample with all treated units (staggered adoption) i.e., no never treated units? In such a case, pi = Infinity will never be the case.

              If yes, what would be the 'clean controls' for the unit with the last adoption in the sample?

              Thank you

              Comment


              • #22
                Bonjour à tous,
                Je suis un adepte des projections locales LPDID. Je l’ai utilisé pour estimer les effets de l’inflation sur le capital humain en Afrique subsaharienne. J’ai obtenu quelques résultats, mais je ne sais pas comment interpréter le graphique correspondant. De même, Stata a renvoyé le message suivant : attention : vos données ne sont pas fortement équilibrées. Veuillez évaluer s’il s’agit d’un problème dans votre application ou non. Cependant, j’ai précédemment traité les variables manquantes.
                J’ai utilisé le code :
                lpdid prévalence de la sous-alimentation, unité (pays) temps(années) traiter (INFLA) pre_window(5) post_window(10)

                La variable INFLA est celle qui prend la valeur 1 lorsque l’inflation > 5 et 0 dans le cas contraire.

                Cependant, j’aimerais estimer les effets dynamiques et hétérogènes et je demande de l’aide.

                Comment


                • #23
                  Originally posted by Shifu Jiang View Post
                  Dear Alexander/Daniele,

                  Could you please suggest if I need to address the Nickell bias in LP-DID?
                  If yes, does the ANRR exercise in the paper use an Arellano-Bond estimator, and is this implemented by the package?
                  Many thanks in advance!
                  Hi Shifu,

                  Thanks for your interest and for the question!

                  Nickell bias can arise if you include the lagged outcome as a control variable. In that case, bias can be created by the presence of y_{i,t–1} both as a regressor and in the error term (which is equal to e_{i,t+k} – e_{i,t–1}). We know that Nickell bias tends to be negligible if you have many time periods or if autocorrelation is not strong. The ANRR application features many time periods, so Nickell bias is unlikely to be a problem there. But Nickell bias can be an issue if the time dimension is limited and at the same time autocorrelation is strong. In that case one can use a split sample correction to eliminate the bias (as done for example here https://www.aeaweb.org/articles?id=1...pandp.20191071 or here https://arxiv.org/pdf/2302.13455 ). The lpdid command does not feature an option for implementing the split sample correction, so you would have to do that part yourself (it's not hard).

                  I hope this helps!

                  Comment


                  • #24
                    Originally posted by Swati Singh View Post
                    Hi, I have a clarification question.

                    Does the LP-DiD work for the sample with all treated units (staggered adoption) i.e., no never treated units? In such a case, pi = Infinity will never be the case.

                    If yes, what would be the 'clean controls' for the unit with the last adoption in the sample?

                    Thank you
                    Hi Swati,
                    Thanks for your interest and for the question!

                    The baseline version of LP-DiD uses not yet treated units as controls for newly treated units. For a treatment event happening at time t=p, units that are still untreated at time t=p+h constitute the 'clean' control group. This should make it clear that the LP-DiD estimator does not necessarily require the presence of a never treated group. Of course, without any never treated units, you are not going to be able to let the effect of the last treatment event contribute to the average estimate, because there are just no suitable control units for that treatment event (no units are still untreated at the time of that last event).

                    Two relevant caveats about this:

                    (1) If you use the 'nevertreated' option of the lpdid command, which requires using only never treated observations as control units, then of course the estimator with this option will not work unless there is a never treated group in the data

                    (2) By using the nonabsorbing(L) option in the lpdid command, where L is an integer, you add the assumption that treatment effects stabilise after L periods. In that case, you can estimate the effect of the last treatment event even in the case you are describing (where there are no not-yet-treated controls for that last treatment event), because units which entered treatment more than L periods before the last treatment event can be used as controls.

                    Hope this helps!

                    Comment


                    • #25
                      Originally posted by Atebs Attecho View Post
                      Bonjour à tous,
                      Je suis un adepte des projections locales LPDID. Je l’ai utilisé pour estimer les effets de l’inflation sur le capital humain en Afrique subsaharienne. J’ai obtenu quelques résultats, mais je ne sais pas comment interpréter le graphique correspondant. De même, Stata a renvoyé le message suivant : attention : vos données ne sont pas fortement équilibrées. Veuillez évaluer s’il s’agit d’un problème dans votre application ou non. Cependant, j’ai précédemment traité les variables manquantes.
                      J’ai utilisé le code :
                      lpdid prévalence de la sous-alimentation, unité (pays) temps(années) traiter (INFLA) pre_window(5) post_window(10)

                      La variable INFLA est celle qui prend la valeur 1 lorsque l’inflation > 5 et 0 dans le cas contraire.

                      Cependant, j’aimerais estimer les effets dynamiques et hétérogènes et je demande de l’aide.
                      Hi Atebs

                      Thanks for your interest and for the question!

                      I can't really understand French, but I hope the automatic translation did a good job. The message you got is just giving you a 'heads up' that your panel is not balanced. It's up to you to assess whether it's a problem in your setting or not. It's not necessarily an issue, especially if you don't use the 'pmd' option of lpdid. However, I note that your setting seems one of non-absorbing treatment: countries enter and exit periods of high inflation. So you probably need to use the nonabsorbing() option, as described in the help file. More generally, I would suggest thinking whether a difference-in-differences design is appropriate in this setting and why. It seems likely that countries that cross the 5% inflation threshold were already on different underlying trends relative to countries with stable inflation, I would say. But you know your setting well and I don't, so this is just a thought based on your description.

                      I hope this helps - Good luck with your project!

                      Comment


                      • #26
                        Hi Daniele,

                        Thanks a lot for the LPDID, it works really great. Somehow, I want to do some non-binary treatments. It is actually an intercept term of a binary and a non-binary. Can you guide me in the direction, or if it is feasible? From your message in STATA, it seems that the non-binary treatment is possible.

                        Thanks a lot for your great contribution!
                        Tom

                        Comment

                        Working...
                        X