smooth.AutoADAM.simulate
- AutoADAM.simulate(nsim=1, seed=None, obs=None, randomizer=None, **randomizer_kwargs)
Re-simulate
obsobservations from the fitted model.Python port of R’s
simulate.adam(R/adam.R:7365-7611). Pulls the fitted state matrices offselfand feeds them through the shared C++adamCore::simulatekernel. The default error distribution / scale match what the model was fitted under, so the simulated series statistically resembles the in-sample fit.- Parameters:
nsim (
int) – Number of simulated series.seed (
Optional[int]) – Seed for the RNG used by the error sampler. Set this to make the result deterministic across runs.obs (
Optional[int]) – Number of observations per simulated series. Defaults to the in-sample length.randomizer (
Optional[Any]) – Override the model’s fitted distribution. Accepts the same R-style names / callables assim_es(). WhenNone(the default), R’ssimulate.adamdistribution dispatch is used:self.distributionselects the per-distribution sampler fromsample_reforecast_errors(same dispatch asreforecast), scaled byself.scale.**randomizer_kwargs – Forwarded to the randomizer when overridden.
- Returns:
Container with
data,states,residuals,persistence,measurement,transition,initial,probability,occurrence— matches R’s"adam.sim"S3 list field-for-field. Themodelstring is suffixed with" estimated via adam()"soprint()reproduces R’sprint.adam.simoutput.- Return type:
SimulateResult
Parent Class: AutoADAM