Announcement

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

  • Dummy variable that equals 1 if the CEO is also the chairman

    Hi everyone,

    For my research I need a variable that equals 1 if the CEO is also the chairman(/chairwoman), which I will call ''CHAIR''. I generated data for firm years between 2011-2019 ousing Boardex (committee details)
    I already used the code gen CHAIR= 1 if strpos(BoardRole , "Chairman/CEO") , however, I think this is not the right way of creating the variable.
    Could anyone help me with this?
    The data looks like this:

    Click image for larger version

Name:	stata forum question 3.PNG
Views:	1
Size:	121.5 KB
ID:	1589642

  • #2
    I think in your data
    Code:
    gen chair = BoardRole=="Chairman/CEO"
    would do it.

    And do not post pictures, use -dataex- to show sample of your data.

    Comment

    Working...
    X