Description Usage Arguments Details Value Author(s) See Also
set the rebalancing date related parametres of the model
1 2 3 4 5 | modelPar.time(modelPar = modelPar.default(), begT = Sys.Date() -
lubridate::years(1), endT = Sys.Date() - 1, rebFreq = "month",
shiftby = 0, dure = NULL, dates = NULL)
setmodelPar.time(modelPar, begT, endT, rebFreq, shiftby, dure, dates)
|
modelPar |
a modelPar object |
begT |
the begin date |
endT |
the end date |
rebFreq |
an interval specification, one of "day", "week", "month", "quarter" and "year", optionally preceded by an integer and a space, or followed by "s". See |
shiftby |
a integer,how many days the rebalancing date be shifted foreward |
dates |
an arbitrary vector of trading date, with class of Date. If param |
The different between modelPar.time
and setmodelPar.time
is that the all pars of the former have default values, and the latter have not. The former is ussually used to to build the modelPar integrally, and the latter is ussually used to set the parametre individually.
a modelPar object
Ruifei.Yin
Other modelPar setting functions: modelPar.default
,
modelPar.factor
,
modelPar.title
, modelPar.univ
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.