modelData | R Documentation |
Extract from a quantmod
object the
dataset created for use in modelling.
specifyModel creates a zoo
object for
use in subsequent workflow stages (
buildModel
,tradeModel
) that
combines all model inputs, from a variety
of sources, into one model frame.
modelData
returns this object.
modelData(x, data.window = NULL, exclude.training = FALSE)
x |
a |
data.window |
a character vector of subset start and end dates to return |
exclude.training |
remove training period |
When a model is created by specifyModel
, it
is attached to the returned object. One of the
slots of this S4 class is model.data
.
an object of class zoo
containing all
transformations to data specified in
specifyModel
.
Jeffrey A. Ryan
specifyModel
,getModelData
## Not run:
m <- specifyModel(Next(OpCl(SPY)) ~ Cl(SPY) + OpHi(SPY) + Lag(Cl(SPY)))
modelData(m)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.