Skip to content

Instantly share code, notes, and snippets.

#Required libraries
library("stockPortfolio")
library("rugarch")
#clean memory
rm(list = ls())
#get the MSFT datafrom Yahoo!Finance
ticker = c("MSFT")
fullstocks = getReturns(ticker, "day", start="2008-01-01")
@ihabo01
ihabo01 / output.json
Last active September 24, 2015 07:37
Complex Output JSON Schema
"output": {
"type": "object",
"properties": {
"U": {
"type": "numeric[][]",
"description": "Left side orthogonal matrix U"
},
"d": {
"type": "numeric[]",
"description": "Array containing the diagonal elements of the diagonal matrix D"