Announcement

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

  • xtdpd and Hansen test

    Hello,

    Is there any command to run Hansen test after xtdpd? I know I could use xtabond2 to do so, but I would like to stay with xtdpd.

    Thanks

  • #2
    No, there is not. If you do not want to use community-contributed commands, the estat overid postestimation command after the official gmm command computes the Hansen test. See the help files for examples. Otherwise, I recommend to use the xtdpdgmm command:
    XTDPDGMM: new Stata command for GMM estimation of linear dynamic panel models
    https://www.kripfganz.de/stata/

    Comment


    • #3
      Ok thanks for advice.

      Comment


      • #4
        Hello everyone, I have a question and it is very important, thank you for your guidance.
        In a research with panel data, I use my model based on the approach of GMM, in addition, I want to control the effects of year and industry in the model, but it gives me an error. Thank you for guiding me to correct the following command, Please;

        "xtdpd etr L.etr ceonarcissismremuneration lev roa owncon duality fsize bsize ceoage bmeeting, dgmmiv(ceonarcissismremuneration lev roa owncon duality fsize bsize ceoage bmeetin i.industry i.years) dgmm(etr, lagrange(2 4)) lgmmiv( etr ) twostep artests(2)"

        Comment


        • #5
          Originally posted by Foad Zamani View Post
          Hello everyone, I have a question and it is very important, thank you for your guidance.
          In a research with panel data, I use my model based on the approach of GMM, in addition, I want to control the effects of year and industry in the model, but it gives me an error. Thank you for guiding me to correct the following command, Please;

          "xtdpd etr L.etr ceonarcissismremuneration lev roa owncon duality fsize bsize ceoage bmeeting, dgmmiv(ceonarcissismremuneration lev roa owncon duality fsize bsize ceoage bmeetin i.industry i.years) dgmm(etr, lagrange(2 4)) lgmmiv( etr ) twostep artests(2)"
          As mentioned on the other thread, please ask this as a new thread, rather than adding it to an answered and not clearly related question. In addition, you need to state the exact error. You can also search for the error to see if there’s a solution already.
          Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

          When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

          Comment


          • #6
            Hello and good time, my main problem is that I don't know how to ask a new question. Please guide me from which part to ask questions.

            Comment


            • #7
              Originally posted by Foad Zamani View Post
              Hello and good time, my main problem is that I don't know how to ask a new question. Please guide me from which part to ask questions.
              As I said, please
              1. post a new topic
              2. report the exact error message that Stata gave you. Without this, any users of the command will have to guess at what went wrong. There may be many causes for errors, so people may be unable to guess.
              3. if the code isn’t the exact code you used, posting the exact code can be helpful
              4. Not required 100% of the time, but it often helps to have a snapshot of your data. You can extract a few observations using the dataex command.
              Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

              When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

              Comment


              • #8
                I asked my own question with sample data as a new question (Dynamic panel and GMM)

                Comment

                Working...
                X