Announcement

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

  • #16
    you refer before to this code to convert negative value to log can use it
    Code:

    sign(x) * log(abs(x) + 1)

    asinh(x)

    sign(x) * abs(x)^(1/3)

    Comment


    • #17
      my model that i use it
      xtreg newinvestment smoothness overfirm smoothness*overfirm control variables fe
      iwant transform newinvestment into log and use the model as follow

      xtreg lognewinvestment smoothness overfirm smoothness*overfirm control variables fe. can do this after convert negative value to log can use it
      Code:

      sign(x) * log(abs(x) + 1)

      asinh(x)

      sign(x) * abs(x)^(1/3)
      Last edited by hend elgamiel; 16 Jan 2018, 07:31.

      Comment


      • #18
        Good, so you know about those transformations.

        Comment


        • #19
          yes , iam not using GLM i use xtreg and i want use this formula to convert negative value to log
          xtreg lognewinvestment smoothness overfirm smoothness*overfirm control variables fe. can use it or no ?

          Comment


          • #20
            I am sorry, but I can't see a new question in #19.

            Comment


            • #21
              sorry , not a new question but i assert iam not using GLM i use xtreg . so,my question is
              can use the formula to convert negative value to log with xtreg or no ? as follow
              xt reg lognewinvestment smoothness overfirm smoothness*overfirm control variables fe.
              Last edited by hend elgamiel; 16 Jan 2018, 08:42.

              Comment


              • #22
                Again: yes, you can do it.

                Comment


                • #23
                  thank you Nick Cox

                  Comment

                  Working...
                  X