Announcement

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

  • Defining logit dependent variable

    Hi...perhaps you or someone can help me...I want to run a panel logit crisis model and not sure how to code the crisis dependent variable that requires: 1, non-performing assets/asset >10%, bank bail out >2% of GDP, emergency govt intervention and bank runs...ll appreciate any help really...thanks in advance.

  • #2
    Code:
    generate byte crisis = 0
    
    replace crisis = 1 if ///
        nonperforming / total > 0.1 & ///
        bailout / gdp > 0.02 & ///
        strlower(emergency_intervention) != "no" & ///
        strlower(bank_run) != "no"
    
    replace crisis = . if missing(nonperforming, total, bailout, gdp, emergency_intervention, bank_run)

    Comment


    • #3
      Many Thanks Joseph...really appreciate it.

      Comment

      Working...
      X