This file contains 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
#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") |
This file contains 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
"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" |