Dear Statalisters,
Below is part of my data, which includes fundid, manager name, gender, begin day, end day (the tenure of the manager in a particular fund), and year_month(the manager worked in the fund at the particular time).
I want to
1. drop the fundid manage by individual manager at year_month level;
2. create dummy that represents whether a team(fundid) have a female manager(1) or not(0) at a particular time period(year_month).
However, different team at every time period contains different number of managers and the manager turnover exists therefore I have no clue on this.
Please ignore the gender with N/A, I have to hand cleaning this part and have not finished yet.
DATA
Could anyone hlep?
Regards
Ulrica
Below is part of my data, which includes fundid, manager name, gender, begin day, end day (the tenure of the manager in a particular fund), and year_month(the manager worked in the fund at the particular time).
I want to
1. drop the fundid manage by individual manager at year_month level;
2. create dummy that represents whether a team(fundid) have a female manager(1) or not(0) at a particular time period(year_month).
However, different team at every time period contains different number of managers and the manager turnover exists therefore I have no clue on this.
Please ignore the gender with N/A, I have to hand cleaning this part and have not finished yet.
DATA
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 fundid str30 managername str3 male_0_female_1_notsure_NA float year_month "FS00008LYU" "James N. Mordy" "0" 684 "FS00008LYU" "Greg Sleight" "0" 684 "FS00008LYU" "Menno Vermeulen" "N/A" 684 "FS00008LYU" "Guy Lakonishok" "0" 685 "FS00008LYU" "John D. Schaeffer" "0" 685 "FS00008LYU" "James N. Mordy" "0" 685 "FS00008LYU" "Josef Lakonishok" "0" 685 "FS00008LYU" "Menno Vermeulen" "N/A" 685 "FS00008LYU" "Elaine F. Hahn" "1" 685 "FS00008LYU" "Greg Sleight" "0" 685 "FS00008LYU" "Puneet Mansharamani" "N/A" 685 "FS00008LYU" "Puneet Mansharamani" "N/A" 686 "FS00008LYU" "Josef Lakonishok" "0" 686 "FS00008LYU" "Greg Sleight" "0" 686 "FS00008LYU" "John D. Schaeffer" "0" 686 "FS00008LYU" "Elaine F. Hahn" "1" 686 "FS00008LYU" "Guy Lakonishok" "0" 686 "FS00008LYU" "James N. Mordy" "0" 686 "FS00008LYU" "Menno Vermeulen" "N/A" 686 "FS00008LYU" "Elaine F. Hahn" "1" 687 "FS00008LYU" "Puneet Mansharamani" "N/A" 687 "FS00008LYU" "James N. Mordy" "0" 687 "FS00008LYU" "Jody I. Hrazanek" "1" 687 "FS00008LYU" "Guy Lakonishok" "0" 687 "FS00008LYU" "John D. Schaeffer" "0" 687 "FS00008LYU" "Josef Lakonishok" "0" 687 "FS00008LYU" "Menno Vermeulen" "N/A" 687 "FS00008LYU" "Greg Sleight" "0" 687 "FS00008LYU" "Halvard Kvaale" "0" 687 "FS00008LYU" "Guy Lakonishok" "0" 688 "FS00008LYU" "John D. Schaeffer" "0" 688 "FS00008LYU" "Menno Vermeulen" "N/A" 688 "FS00008LYU" "James N. Mordy" "0" 688 "FS00008LYU" "Elaine F. Hahn" "1" 688 "FS00008LYU" "Puneet Mansharamani" "N/A" 688 "FS00008LYU" "Halvard Kvaale" "0" 688 "FS00008LYU" "Greg Sleight" "0" 688 "FS00008LYU" "Josef Lakonishok" "0" 688 "FS00008LYU" "Jody I. Hrazanek" "1" 688 "FS00008LYU" "James N. Mordy" "0" 689 "FS00008LYU" "Guy Lakonishok" "0" 689 "FS00008LYU" "Josef Lakonishok" "0" 689 "FS00008LYU" "Elaine F. Hahn" "1" 689 "FS00008LYU" "Menno Vermeulen" "N/A" 689 "FS00008LYU" "John D. Schaeffer" "0" 689 "FS00008LYU" "Greg Sleight" "0" 689 "FS00008LYU" "Puneet Mansharamani" "N/A" 689 "FS00008LYU" "Jody I. Hrazanek" "1" 689 "FS00008LYU" "Halvard Kvaale" "0" 689 "FS00008LYU" "Puneet Mansharamani" "N/A" 690 "FS00008LYU" "John D. Schaeffer" "0" 690 "FS00008LYU" "Halvard Kvaale" "0" 690 "FS00008LYU" "Elaine F. Hahn" "1" 690 "FS00008LYU" "Greg Sleight" "0" 690 "FS00008LYU" "Jody I. Hrazanek" "1" 690 "FS00008LYU" "Guy Lakonishok" "0" 690 "FS00008LYU" "Menno Vermeulen" "N/A" 690 "FS00008LYU" "James N. Mordy" "0" 690 "FS00008LYU" "Josef Lakonishok" "0" 690 "FS00008LYU" "John D. Schaeffer" "0" 691 "FS00008LYU" "Halvard Kvaale" "0" 691 "FS00008LYU" "Guy Lakonishok" "0" 691 "FS00008LYU" "James N. Mordy" "0" 691 "FS00008LYU" "Menno Vermeulen" "N/A" 691 "FS00008LYU" "Elaine F. Hahn" "1" 691 "FS00008LYU" "Josef Lakonishok" "0" 691 "FS00008LYU" "Greg Sleight" "0" 691 "FS00008LYU" "Puneet Mansharamani" "N/A" 691 "FS00008LYU" "Jody I. Hrazanek" "1" 691 "FS00008LYU" "Guy Lakonishok" "0" 692 "FS00008LYU" "Greg Sleight" "0" 692 "FS00008LYU" "James N. Mordy" "0" 692 "FS00008LYU" "Halvard Kvaale" "0" 692 "FS00008LYU" "Josef Lakonishok" "0" 692 "FS00008LYU" "Puneet Mansharamani" "N/A" 692 "FS00008LYU" "Elaine F. Hahn" "1" 692 "FS00008LYU" "John D. Schaeffer" "0" 692 "FS00008LYU" "Menno Vermeulen" "N/A" 692 "FS00008LYU" "Jody I. Hrazanek" "1" 692 "FS00008LYU" "John D. Schaeffer" "0" 693 "FS00008LYU" "Greg Sleight" "0" 693 "FS00008LYU" "Elaine F. Hahn" "1" 693 "FS00008LYU" "James N. Mordy" "0" 693 "FS00008LYU" "Jody I. Hrazanek" "1" 693 "FS00008LYU" "Josef Lakonishok" "0" 693 "FS00008LYU" "Menno Vermeulen" "N/A" 693 "FS00008LYU" "Halvard Kvaale" "0" 693 "FS00008LYU" "Puneet Mansharamani" "N/A" 693 "FS00008LYU" "Guy Lakonishok" "0" 693 "FS00008LYU" "Elaine F. Hahn" "1" 694 "FS00008LYU" "Jody I. Hrazanek" "1" 694 "FS00008LYU" "Guy Lakonishok" "0" 694 "FS00008LYU" "Puneet Mansharamani" "N/A" 694 "FS00008LYU" "James N. Mordy" "0" 694 "FS00008LYU" "Greg Sleight" "0" 694 "FS00008LYU" "Josef Lakonishok" "0" 694 "FS00008LYU" "John D. Schaeffer" "0" 694 "FS00008LYU" "Menno Vermeulen" "N/A" 694 "FS00008LYU" "Halvard Kvaale" "0" 694 "FS00008LYU" "Halvard Kvaale" "0" 695 end format %tm year_month
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 fundid str30 managername str3 male_0_female_1_notsure_NA float year_month "FS00008N69" "Aziz V. Hamzaogullari" "0" 696 "FS00008N69" "John (Jed) E. Stocks" "0" 696 "FS00008N69" "C. Frank Feng" "0" 697 "FS00008N69" "Jonathan W. Sage" "0" 697 "FS00008N69" "Edward B. Wagner" "0" 697 "FS00008N69" "Julian Albornoz" "1" 697 "FS00008N69" "John (Jed) E. Stocks" "0" 697 "FS00008N69" "David J. Pavan" "0" 697 "FS00008N69" "Matthew W. Krummell" "0" 697 "FS00008N69" "Aziz V. Hamzaogullari" "0" 697 "FS00008N69" "James C. Fallon" "0" 697 end format %tm year_month
Could anyone hlep?
Regards
Ulrica