Profiling of model dynamics using simulation/estimation/prediction.
# S3 method for tsissm.estimate
tsprofile(object, h = 1, nsim = 100, seed = NULL, trace = FALSE, ...)
An object of class “tsissm.profile”.
an object of class “tsissm.estimate”.
the forecast horizon on which to evaluate performance metrics.
the number of paths to generate.
an object specifying if and how the random number generator should be initialized. See the simulate documentation for more details.
whether to show the progress bar and additionally output verbose messages.
The user is expected to have set up appropriate handlers for this using
the handlers
function from the “progressr” package.
not currently used.
The function profiles an estimated model by simulating and then estimating multiple paths from the assumed DGP while leaving h values out for prediction evaluation. Each simulated path is equal to the size of the original dataset plus h additional values, and initialized with the initial state vector from the model. The resulting output contains the distribution of the MAPE, percent bias (BIAS) and mean squared log relative error (MSLRE) per horizon h. Since these matrices are of class “tsmodel.distribution” they can be readily plotted with the special purpose “plot” function for this class from the “tsmethods” package. Additionally, a data.table matrix is also returned with the distribution of the coefficients from each path estimation.