Announcement

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

  • The percentage of independent directors on the board

    Hi everyone,

    For my research I need 1 more control variable.
    I need a control variable which equals the percentage of independent directors on the board.
    I already have data from Boardex.
    I also already have a variable (inddir) which equals 1 if the board member is ''Independent''.
    I have data from a lot of different companies, from 2011-2019.
    So basically, what I need, is for each different board, for each different year, calculate the percentage of independent directors on that board in that year.
    Does anyone know how to get this? I would really appreciate your help!
    My dataset looks as follows:
    Click image for larger version

Name:	stata forum question 2.PNG
Views:	1
Size:	129.3 KB
ID:	1588811

  • #2
    Please do read https://www.statalist.org/forums/help#stata and give data examples using dataex. This may help so long as values of the Indicator are only 0, 1 or missing.

    Code:
    egen wanted = mean(100 * Inddir), by(Boardname YEAR)


    See also https://www.stata-journal.com/articl...article=dm0099

    Comment


    • #3
      Thank you Nick Cox , I will have a read on that.
      The code worked perfect for me!

      Comment

      Working...
      X