
Last chance! 50% off unlimited learning
Sale ends in
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)
quantmod
objectzoo
containing all
transformations to data specified in
specifyModel
.specifyModel
, it
is attached to the returned object. One of the
slots of this S4 class is model.data
.specifyModel
,getModelData
m <- specifyModel(Next(OpCl(SPY)) ~ Cl(SPY) + OpHi(SPY) + Lag(Cl(SPY)))
modelData(m)
Run the code above in your browser using DataLab