Announcement

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

  • Loop for Tobit

    can some tell me how to write a loop for tobit...

  • #2
    Which loop, I mean, what commands you wish to apply?
    Best regards,

    Marcos

    Comment


    • #3
      foreach x of varlist a b c d e f d e f g h{
      tobit `x' y,ll(0)
      mfx compute,predict (e(0,.))
      }

      Comment


      • #4
        is this correct..

        Comment


        • #5
          To start, the legal command is - tobit y x - not the opposite
          Best regards,

          Marcos

          Comment


          • #6
            i want t o write a tobit regression and thus wanna form a loop.. using foreach

            Comment


            • #7
              after running the tobit and computing below mfx
              mfx compute,predict (ystar(0,.))

              it says
              warning: predict() expression ystar(0,.) unsuitable for standard-error calculation;
              option nose imposed
              why so?
              Last edited by Olive Bat; 02 Mar 2020, 22:39.

              Comment


              • #8
                Please read this text, particularly #4
                Best regards,

                Marcos

                Comment


                • #9
                  I do not use - mfx - command. That said, adding "." will skyrocket the upper limit for right censoring.
                  Best regards,

                  Marcos

                  Comment


                  • #10
                    Thanks Marcos will look into it.

                    Comment

                    Working...
                    X