Announcement

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

  • Query Regarding Lagged of Binary Variable

    Hi Researchers, @everyone.

    If I need to checks the impact of independent variable at time t on outcome variable at t-1 or t-2. IS it possible to take the logged of dependent variable (if DV is binary variable and its value is 1 or 0). Thanks.

  • #2
    No. Can't take the natural log of 0.

    Comment


    • #3
      your question, probably due to typos, is ambiguous - but I interpret it differently and the answer is "yes"; see
      Code:
      h tsset

      Comment


      • #4
        you can get a lag of the dv no problem, but you can't ln(0), which seems to me to be the question.

        Comment

        Working...
        X