-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht1_descriptive_statistics.Rmd
More file actions
178 lines (138 loc) · 6.71 KB
/
t1_descriptive_statistics.Rmd
File metadata and controls
178 lines (138 loc) · 6.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
---
title: "Table 1 - Descriptive statistics"
output: html_document
---
Load libraries
```{r warning=FALSE}
library(tidyverse)
library(haven)
library(table1)
```
Load data
```{r}
board_members <- read_dta("d_trustees_long_network_ties_preqinids.dta")
forbes <- read_dta("d_forbes400_alum_board_1989_2003_2017.dta")
preqin <- read_dta("preqin_sandp_trustee_ties.dta")
school_level <- read_dta("d_school_level_elite_embed.dta")
```
Modify the datasets
```{r}
#Limit observations to top 60 from 2003 to 2017
board_members <- board_members %>%
filter(schooltype!="liberal arts") %>%
filter(unitid!=232186 & unitid!=126818 & unitid!=209542 & unitid!=221759 & unitid!=102614 & unitid!=129020 & unitid!=181464) %>%
filter(year > 2002)
# Create dummy variables for each type of board member
board_members <- board_members %>%
mutate(Alt_finance_x = ifelse(employer_type_aggregated=="PE and hedge funds",1,0),
Other_finance_x = ifelse(employer_type_aggregated=="Other finance",1,0),
Edu_sci_med_x = ifelse(employer_type_aggregated=="Education science medicine",1,0),
Nonfinance_business_x = ifelse(employer_type_aggregated=="Non-financial business",1,0),
Nonprofit_x = ifelse(employer_type_aggregated=="Non-profits/philanthropy",1,0),
Public_sector_x = ifelse(employer_type_aggregated=="Public sector",1,0),
Real_estate_x = ifelse(employer_type_aggregated=="Real estate",1,0),
Private = ifelse(schooltype=="research",1,0),
Public = ifelse(schooltype=="public",1,0))
#Limit observation to top 60 from 2003 to 2017 (school level data)
school_level <- school_level %>%
filter(schooltype!="liberal arts") %>%
filter(unitid!=232186 & unitid!=126818 & unitid!=209542 & unitid!=221759 & unitid!=102614 & unitid!=129020 & unitid!=181464) %>%
filter(year > 2002)
```
Table 1: Person level data (Forbes 400)
```{r}
my.render.cont <- function(x) {
with(stats.apply.rounding(stats.default(x), digits=4), c("",
"Mean (SD)"=sprintf("%s (%s)", MEAN, SD)))
}
forbes <- forbes %>%
mutate(toppublicmba = ifelse(mbaschooltype==2, 1, 0),
topprivatemba = ifelse(mbaschooltype==3, 1, 0),
toppublicba = ifelse(collegeschooltype==2, 1, 0),
topprivateba = ifelse(collegeschooltype==3, 1, 0))
table1(~ boardtop30private + boardtop30public + pehedge + otherfin + technology + worth + inherited + topprivateba + toppublicba + topprivatemba + toppublicmba, data = forbes, render.continuous=my.render.cont)
forbes %>%
select(id) %>%
unique()
```
Table 1: Person level data (Top 60 University Trustees)
```{r}
my.render.cont <- function(x) {
with(stats.apply.rounding(stats.default(x), digits=2), c("",
"Mean (SD)"=sprintf("%s (%s)", MEAN, SD)))
}
table1(~ Public + Private + Alt_finance_x + Other_finance_x + Real_estate_x + Nonfinance_business_x + Nonprofit_x + Edu_sci_med_x + Public_sector_x, data = board_members, render.continuous=my.render.cont)
board_members %>%
select(firstname, lastname, firmname_new) %>%
unique()
```
Table 1: University-level data (2003 - 2017)
```{r}
my.render.cont <- function(x) {
with(stats.apply.rounding(stats.default(x), digits=4), c("",
"Mean (SD)"=sprintf("%s (%s)", MEAN, SD)))
}
# Getting estimates from school_level
school_level <- school_level %>%
mutate(rejectrate = 1 - acceptrate) %>%
mutate(total03_revenue = ifelse(total03_revenue<0, NA, total03_revenue)) %>%
mutate(log_enrollment = log(fte_count),
log_endowment = log(endowment_assets/cpi_scalar_2017),
log_revenue = log(total03_revenue/cpi_scalar_2017))
table1(~ pehedge + otherfinance + rejectrate + log_enrollment + log_endowment + log_revenue + fgrnt_p + pefraceunder| schooltype, data = school_level, render.continuous=my.render.cont)
# Forbes 400 pe alumni (2003/2007 only)
school_level_2003_2017 <- school_level %>%
filter(year == 2003 | year == 2017)
table1(~ alumnipehedge | schooltype, data = school_level_2003_2017, render.continuous=my.render.cont)
```
Table 1: Private equity firm-level data (2003-2017)
```{r}
my.render.cont <- function(x) {
with(stats.apply.rounding(stats.default(x), digits=4), c("",
"Mean (SD)"=sprintf("%s (%s)", MEAN, SD)))
}
preqin_updated <- preqin %>%
mutate(strength = ifelse(is.na(strength), 0, strength),
Non_finance_business = ifelse(is.na(Non_finance_business), 0, Non_finance_business)) %>%
mutate(All_other_ties = strength-Non_finance_business,
excess_irr = net_irr_pcent - sp500_return_pct) %>%
mutate(fund_type = ifelse(fund_type== "Early Stage: Seed", "Early_Stage",
ifelse(fund_type== "Early Stage: Start-up", "Early_Stage",
ifelse(fund_type== "Early Stage", "Early_Stage",
ifelse(fund_type== "Direct Secondaries", "Secondaries",
ifelse(fund_type== "Co-Investment Multi-Manager", "Coinvestment",
ifelse(fund_type== "Co-investment", "Coinvestment",
ifelse(fund_type== "Fund of Funds", "Fund_of_Funds",
ifelse(fund_type== "Venture (General)", "Venture",
ifelse(fund_type== "Expansion / Late Stage", "Expansion", fund_type)))))))))) %>%
filter(!is.na(net_irr_pcent), !is.na(fundvaluemnusd)) %>%
filter(fund_focus=="US"|fund_focus=="Europe" | fund_focus == "Diversified Multi-Re")
# All PE firms
preqin_updated_firm <- preqin_updated %>%
group_by(firmid, year, strength, Non_finance_business, All_other_ties, privatetop30, publictop30, rejectrtindex) %>%
summarise(fundvaluemnusd = sum(fundvaluemnusd, na.rm = TRUE)/1000000000,
excess_irr = sum(excess_irr*fundvaluemnusd)/sum(fundvaluemnusd, na.rm = TRUE)) %>%
group_by(firmid) %>%
mutate(count = n()) %>%
filter(count>1)
table1(~ excess_irr + fundvaluemnusd + privatetop30 + publictop30 + Non_finance_business + All_other_ties, data = preqin_updated_firm, render.continuous=my.render.cont)
preqin_updated_firm %>%
select(firmid) %>%
unique()
# PE firms with trustee ties
preqin_w_trustee <- preqin_updated %>%
group_by(firmid, year, strength, Non_finance_business, All_other_ties, privatetop30, publictop30, rejectrtindex) %>%
summarise(fundvaluemnusd = sum(fundvaluemnusd, na.rm = TRUE)/1000000000,
excess_irr = sum(excess_irr*fundvaluemnusd)/sum(fundvaluemnusd, na.rm = TRUE)) %>%
ungroup() %>%
group_by(firmid) %>%
mutate(max_strength = max(strength, na.rm = TRUE)) %>%
filter(max_strength > 0) %>%
mutate(count = n()) %>%
filter(count>1)
table1(~ excess_irr + fundvaluemnusd + privatetop30 + publictop30 + Non_finance_business + All_other_ties, data = preqin_w_trustee, render.continuous=my.render.cont)
preqin_w_trustee %>%
ungroup() %>%
select(firmid) %>%
unique()
```