
Last chance! 50% off unlimited learning
Sale ends in
buildData(formula, na.rm = TRUE, return.class = "zoo")
formula
(or one
that can be coerced to that class): a symbolic description
of the desired output data object, with the dependent
side
corresponding to first column, and the independent
parameters of
the formula assigned to the remaining columns. return.class
.specifyModel
. Offers the ability to apply transformations
to raw data using a common formula mechanism, without having to explicitly
merge different data objects.Interally calls specifyModel
followed by modelData
, with the
returned object being coerced to the desired 'return.class' if possible,
otherwise returns a zoo
object.
See getSymbols
and specifyModel
for more information
regarding proper usage.
getSymbols
, specifyModel
,
modelData
## Not run: ------------------------------------
# buildData(Next(OpCl(DIA)) ~ Lag(TBILL) + I(Lag(OpHi(DIA))^2))
# buildData(Next(OpCl(DIA)) ~ Lag(TBILL), na.rm=FALSE)
# buildData(Next(OpCl(DIA)) ~ Lag(TBILL), na.rm=FALSE, return.class="ts")
## ---------------------------------------------
Run the code above in your browser using DataLab