This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <meta name="viewport" content="width=device-width"> | |
| <head> | |
| <script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
| <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.1-latest/MathJax.js?config=TeX-AMS-MML_SVG-full"></script> | |
| <style type="text/css"> | |
| body { | |
| font: 12px serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <meta name="viewport" content="width=device-width"> | |
| <head> | |
| <script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
| <style type="text/css"> | |
| svg { font: 12px serif; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################################################ | |
| ################################################################################ | |
| ## Prep workspace | |
| ################################################################################ | |
| ################################################################################ | |
| options(width=200, digits=6, digits.secs=6) | |
| rm(list=ls()) | |
| library(foreign) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Prep workspace | |
| rm(list=ls()) | |
| library(foreign) | |
| library(grid) | |
| library(plyr) | |
| library(ggplot2) | |
| library(tikzDevice) | |
| library(reshape) | |
| library(vars) | |
| library(scales) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (t in 1:10) { | |
| print t | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Prep workspace | |
| rm(list=ls()) | |
| library(foreign) | |
| library(grid) | |
| library(plyr) | |
| library(ggplot2) | |
| library(tikzDevice) | |
| print(options('tikzLatexPackages')) | |
| options(tikzLatexPackages = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Prep workspace | |
| rm(list=ls()) | |
| library(foreign) | |
| library(grid) | |
| library(plyr) | |
| library(ggplot2) | |
| library(tikzDevice) | |
| print(options('tikzLatexPackages')) | |
| options(tikzLatexPackages = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import time | |
| import random | |
| import os | |
| import urllib2 | |
| import io | |
| import gzip | |
| import sys | |
| import urllib | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ticker | name | t1 | t2 | interval | |
|---|---|---|---|---|---|
| A | "Agilent Technologies" | 2008-01-01 | 2012-12-31 | 5.00547945205479 | |
| AA | "Alcoa" | 2008-01-01 | 2012-12-31 | 5.00547945205479 | |
| AAPL | "Apple" | 2008-01-01 | 2012-12-31 | 5.00547945205479 | |
| ABBV | "AbbVie" | 2012-12-31 | 2012-12-31 | 0.00273972602739726 | |
| ABC | "AmerisourceBergen" | 2008-01-01 | 2012-12-31 | 5.00547945205479 | |
| ABK | "Ambac Financial" | 2008-01-01 | 2008-06-10 | 0.443835616438356 | |
| ABT | "Abbot Laboratories" | 2008-01-01 | 2012-12-31 | 5.00547945205479 | |
| ACE | "ACE Limited" | 2010-07-14 | 2012-12-31 | 2.47123287671233 | |
| ACN | "Accenture" | 2011-07-05 | 2012-12-31 | 1.4958904109589 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Prep workspace | |
| rm(list=ls()) | |
| library(foreign) | |
| library(grid) | |
| library(plyr) | |
| library(ggplot2) | |
| library(tikzDevice) | |
| library(wmtsa) |
OlderNewer