Description Usage Arguments Value Author(s) Examples
#Give it an xts object and hold out pct, and it gives
list with #first (1-ho.pct
) percent of data, and
last ho.pct
of data
1 | makeTestData(x, ho.pct = 0.2)
|
x |
xts data object |
ho.pct |
percent of data to use for out-of-sample |
inSample |
first data set; used to create model |
outOfSample |
second data set for confirming results found using 1st dataset |
Garrett See
1 2 3 4 5 6 7 | ## Not run:
getSymbols('SPY')
splitdata <- makeTestData(SPY)
tail(splitdata[[1]])
head(splitdata[[2]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.