View source: R/stock2covariates.R
stock2covariates | R Documentation |
Construct sensible covariates for stock market data.
stock2covariates(file, g = c(0.95, 0.8), kappa = 1, ma = c(1, 5, 20))
file |
"character". The location of the CSV format file from Yahoo! Finance which can be the http address. |
g |
"vector". Parameters for geometrically averaging. |
kappa |
"scaler". |
ma |
"vector" with integer entries. Moving average indicator for the returns . |
The historical finance data can be obtained from "Yahoo! Finance".
"data.frame". The returned data frame only contains the non-NA data due to the moving average procedure.
Created: Thu Jan 05 13:23:35 CET 2012; Current: Mon Sep 28 22:01:20 CST 2015.
Feng Li, Department of Statistics, Stockholm University, Sweden.
Geweke, and Keane (2007) p.274
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.