Currently supported as input type of data
are classes "matrix"
,
"data.frame"
, ts
, xts
and zoo
.
Using demo data shows for wolakRep
, that results do not change much at all for 100 or 1000 simulations, but the running time dramatically increases with the number of simulations. However, for robust results a minimum of 100 runs is highly recommended.
Internally, a non-linear optimization using "constrOptim"
is used for the Monte-Carlo simulation. The resulting values of the solution are close to zero, but due to the used machine precision numerically differnt from zero. For this reason, we suggest a treshold value close to zero. The default value is \(1e-6\), so all resulting solutions smaller than the treshold value are treated as being zero. The default treshold value is consistent with the data-set and results of Patton and Timmermann (JoE, 2010). Of course, the appropriate treshold value can differ across applications (e.g. run the code on one set of data, and then the same data/100).
The HAC estimator of the covariance matrix of follows the adjustment of Newey-West (1987, 1994).
The kernel used is "Bartlett". See NeweyWest
for further information.