I just updated R remotely. I wanted to avoid the hassle of logging in via VNC (“Screen Sharing”), so I did this: Now, to get RStudio from the command-line: Advertisements
Posted in Mac, R
Tagged R, rstats
The paper by Loughran and McDonald (2011) develops lists of words that are intended to reflect “tone” in financial text. The following code retrieves these lists and applies them to a large body of text (over a billion words) from … Continue reading
Here is code for 5.2.5 Extended Example: A Salary Study from “The Art of R Programming“. The primary addition to the code in the book is the addition of code to get the data from the Department of Labor’s website.
As a follow-up to an earlier post, I was pleasantly surprised to discover that the code to handle two-way cluster-robust standard errors in R that I blogged about earlier worked out of the box with the IV regression routine available … Continue reading
Here is some R code to download SEC index files and put them into a database. This is an alternative to Perl code provided by Andrew Leone here. First, a function to download the zipped index file from the SEC … Continue reading
Here’s a cute picture. I was looking to sample 10-K filings and wondered whether I could assume they were well distributed over days of the month. This picture required surprisingly little code to produce: