
Last chance! 50% off unlimited learning
Sale ends in
getModelData(x, na.rm = TRUE)
quantmod
quantmod.OHLC
getModelData
is used to retrieve the appropriate underlying variables,
and apply model specified transformations automatically.
It can be used to also update a current model in memory with the most recent data.getSymbols
load data
specifyModel
create model structure
buildModel
construct model
modelData
extract model datasetmy.model <- specifyModel(Next(OpCl(QQQQ)) ~ Lag(Cl(NDX),0:5))
getModelData(my.model)
Run the code above in your browser using DataLab