powered by
iteration of the least square criterion for a grid of the phi parameter
bestParameters(y, nbK = 10, type = "MAD", sdEta = TRUE)
A time-series obtained by the dataRWAR function
number of diff k elements to consider
type of robust variance estimator (MAD, S or Q)
if sdEta = FALSE there is no random walk
a list with an estimation of the best parameters for Eta2, Nu2 and phi
# NOT RUN { bestParameters(dataRWAR(10000, sdEta = 0.2, sdNu = 0.1, phi = 0.3, type = "rand1", nbSeg = 10)$y) # }
Run the code above in your browser using DataLab