Creates prediction intervals by simulating trajectories from the fitted model. This method uses the model's own simulation mechanism.
ModelTrajectoryInterval(
n_trajectories = 1000L,
seed = NULL,
positivity_correction = "none",
return_trajectories = FALSE
)Number of trajectories to simulate (default: 1000)
Random seed for reproducibility (default: NULL)
Method to ensure positive forecasts: "none", "post_clip", "truncate", or "zero_floor" (default: "none")
Whether to return forecast trajectories (default: FALSE)
A ModelTrajectoryInterval object
if (FALSE) { # \dontrun{
# Basic model-based intervals
method <- ModelTrajectoryInterval()
# With more trajectories
method <- ModelTrajectoryInterval(n_trajectories = 2000, seed = 456)
# Return trajectories for analysis
method <- ModelTrajectoryInterval(
n_trajectories = 1000,
return_trajectories = TRUE
)
} # }