smooth.OMG.simulate

OMG.simulate(nsim=1, seed=None, obs=None, **kwargs)

Re-simulate the combined OMG occurrence series.

Python port of R’s simulate.omg (R/omg.R:1945-1997). Simulates the two sub-models independently via OM.simulate(), combines their latent series via omg_link_function(), then draws 0/1 occurrence indicators with the resulting probability.

Parameters:
  • nsim (int) – Forwarded to each sub-model’s OM.simulate().

  • obs (Optional[int]) – Forwarded to each sub-model’s OM.simulate().

  • **kwargs – Forwarded to each sub-model’s OM.simulate().

  • seed (Optional[int]) – Master seed. Derived seeds seed and seed + 1 are passed to the two sub-model calls so the joint result is reproducible from a single integer.

Returns:

probability carries the combined probability series; occurrence carries the 0/1 indicators; model_a / model_b carry the sub-model SimulateResult instances (with their latent fields exposed for any downstream inspection).

Return type:

SimulateResult


Parent Class: OMG