-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathindex.html
More file actions
357 lines (315 loc) · 7.85 KB
/
index.html
File metadata and controls
357 lines (315 loc) · 7.85 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!doctype html>
<html lang="en">
<head>
<title>SAS Macros</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"><meta name="generator" content="Org-mode">
<meta name="author" content="Edwin Hu">
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/jquery.bxslider.css">
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link rel="stylesheet" type="text/css" href="/css/cards.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/boostrap.min.js"></script>
<script src="/js/jquery.bxslider.min.js"></script>
<script src="/js/main.js"></script>
<style type="text/css">
/* org mode styles on top of twbs */
html {
position: relative;
min-height: 100%;
}
body {
font-size: 16px;
margin-bottom: 95px;
}
footer {
position: absolute;
bottom: 0;
width: 100%;
height: 101px;
background-color: #f5f5f5;
}
footer > div {
padding: 10px;
}
footer p {
margin: 0 0 5px;
text-align: center;
}
#table-of-contents {
margin-top: 20px;
margin-bottom: 20px;
}
blockquote p {
font-size: 16px;
}
pre {
font-size: 16px;
}
.footpara {
display: inline-block;
}
/* from twbs docs */
.bs-docs-sidebar.affix {
position: static;
}
@media (min-width: 768px) {
.bs-docs-sidebar {
padding-left: 20px;
}
}
/* All levels of nav */
.bs-docs-sidebar .nav > li > a {
display: block;
padding: 4px 20px;
font-size: 14px;
font-weight: 500;
color: #999;
}
.bs-docs-sidebar .nav > li > a:hover,
.bs-docs-sidebar .nav > li > a:focus {
padding-left: 19px;
color: #A1283B;
text-decoration: none;
background-color: transparent;
border-left: 1px solid #A1283B;
}
.bs-docs-sidebar .nav > .active > a,
.bs-docs-sidebar .nav > .active:hover > a,
.bs-docs-sidebar .nav > .active:focus > a {
padding-left: 18px;
font-weight: bold;
color: #A1283B;
background-color: transparent;
border-left: 2px solid #A1283B;
}
/* Nav: second level (shown on .active) */
.bs-docs-sidebar .nav .nav {
display: none; /* Hide by default, but at >768px, show it */
padding-bottom: 10px;
}
.bs-docs-sidebar .nav .nav > li > a {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 30px;
font-size: 12px;
font-weight: normal;
}
.bs-docs-sidebar .nav .nav > li > a:hover,
.bs-docs-sidebar .nav .nav > li > a:focus {
padding-left: 29px;
}
.bs-docs-sidebar .nav .nav > .active > a,
.bs-docs-sidebar .nav .nav > .active:hover > a,
.bs-docs-sidebar .nav .nav > .active:focus > a {
padding-left: 28px;
font-weight: 500;
}
/* Nav: third level (shown on .active) */
.bs-docs-sidebar .nav .nav .nav {
padding-bottom: 10px;
}
.bs-docs-sidebar .nav .nav .nav > li > a {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 40px;
font-size: 12px;
font-weight: normal;
}
.bs-docs-sidebar .nav .nav .nav > li > a:hover,
.bs-docs-sidebar .nav .nav .nav > li > a:focus {
padding-left: 39px;
}
.bs-docs-sidebar .nav .nav .nav > .active > a,
.bs-docs-sidebar .nav .nav .nav > .active:hover > a,
.bs-docs-sidebar .nav .nav .nav > .active:focus > a {
padding-left: 38px;
font-weight: 500;
}
/* Show and affix the side nav when space allows it */
@media (min-width: 992px) {
.bs-docs-sidebar .nav > .active > ul {
display: block;
}
/* Widen the fixed sidebar */
.bs-docs-sidebar.affix,
.bs-docs-sidebar.affix-bottom {
width: 213px;
}
.bs-docs-sidebar.affix {
position: fixed; /* Undo the static from mobile first approach */
top: 20px;
}
.bs-docs-sidebar.affix-bottom {
position: absolute; /* Undo the static from mobile first approach */
}
}
@media (min-width: 1200px) {
/* Widen the fixed sidebar again */
.bs-docs-sidebar.affix-bottom,
.bs-docs-sidebar.affix {
width: 263px;
}
}
</style>
<script type="text/javascript">
$(function() {
'use strict';
setTimeout(function() {
$('.bs-docs-sidebar li').first().addClass('active');
$(document.body).scrollspy({target: '.bs-docs-sidebar'});
$('.bs-docs-sidebar').affix();
}, 500);
});
</script>
</head>
<body>
<div id="content" class="container">
<div class="row"><div class="col-md-9"><h1 class="title">SAS Macros</h1>
<p>
A collection of SAS Macros that I frequently use and occasionally update.
</p>
<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1">CRSP</h2>
<div class="outline-text-2" id="text-1">
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/CC_LINK.sas">CC_LINK</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Link CRSP/COMPUSTAT identifiers</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/CC_LINK.sas">CRSP_MERGE</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Merge CRSP header files with stock files</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-sec-2" class="outline-2">
<h2 id="sec-2">COMPUSTAT</h2>
<div class="outline-text-2" id="text-2">
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/COMP_EAD.sas">COMP_EAD</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Get earnings announcement dates from COMPUSTAT</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-sec-3" class="outline-2">
<h2 id="sec-3">TAQ</h2>
<div class="outline-text-2" id="text-3">
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/TAQ_YEARLY.sas">TAQ_YEARLY</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Lee and Ready NBBO TAQ code</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-sec-4" class="outline-2">
<h2 id="sec-4">Misc.</h2>
<div class="outline-text-2" id="text-4">
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/RESAMPLE.sas">RESAMPLE</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Resample from low to high frequency</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/WINSORIZE_TRUNCATE.sas">WINSORIZE_TRUNCATE</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Winsorize or truncate data</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed">
<colgroup>
<col class="left">
</colgroup>
<thead>
<tr>
<th scope="col" class="left"><a href="https://github.com/edwinhu/sas/blob/master/PARFOR.sas">PARFOR</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="left">Parallel FOR Loop</td>
</tr>
</tbody>
</table>
</div>
</div>
</div><div class="col-md-3"><nav id="table-of-contents">
<div id="text-table-of-contents" class="bs-docs-sidebar">
<ul class="nav">
<li><a href="#sec-1">CRSP</a></li>
<li><a href="#sec-2">COMPUSTAT</a></li>
<li><a href="#sec-3">TAQ</a></li>
<li><a href="#sec-4">Misc.</a></li>
</ul>
</div>
</nav>
</div></div></div>
<footer id="postamble" class="">
<div><p class="author">Author: Edwin Hu</p>
<p class="creator">Jesse H. Jones Graduate School of Business @ Rice University</p>
</div>
</footer>
</body>
</html>