Categories
- Data (9)
- Learning Resources (9)
- Python (9)
- SAS (14)
- Stata (24)
- Uncategorized (1)
-
Recent Posts
Recent Comments
- Amy on Link FactSet and CRSP
- Kai Chen on Link FactSet and CRSP
- Amy on Link FactSet and CRSP
- Sylvia on Commonly used Stata commands to deal with potential outliers
- jianchen shi on Calculate delta (pay-performance sensitivity), vega (risktaking incentives), and firm-specific wealth (inside equity) for executives on Execucomp
Archives
- February 2022
- January 2022
- August 2021
- March 2021
- September 2019
- August 2019
- July 2019
- May 2019
- April 2019
- March 2019
- August 2018
- July 2018
- December 2017
- November 2017
- October 2017
- September 2017
- April 2017
- September 2016
- April 2016
- December 2015
- November 2015
- September 2015
- August 2015
- June 2015
- March 2015
- February 2015
Meta
Monthly Archives: July 2018
Stata command to convert string GVKEY to numerical GVKEY or vice versa
The default type of GVEKY in Compustat is string. Sometimes, we need it to be a numerical type in Stata (e.g., when we want to use the super handy command tsset). The command to convert string GVKEY to numerical GVEKY … Continue reading
Stata command to calculate the area under ROC curve
If we want to evaluate the predictive ability of a logit or probit model, Kim and Skinner (2012, JAE, Measuring securities litigation risk) suggest that A better way of comparing the predictive ability of different models is to use the Receiver … Continue reading
Stata commands to calculate skewness
Suppose we are going to calculate the skewness of 12 monthly returns. The 12 returns may be stored in a row (Figure 1) or in a column (Figure 2). This post discusses how to calculate the skewness in these two … Continue reading
Posted in Stata
Leave a comment
Use Python to download lawsuit data from Stanford Law School’s Securities Class Action Clearinghouse
[Update on 2022-01-08] I am grateful to my research assistant, Shiyu Chen, for her excellent work in this update. This website requires login now. A function was added for login and access to the protected content. The code may terminate … Continue reading
Posted in Python
14 Comments