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 viaOM.simulate(), combines their latent series viaomg_link_function(), then draws 0/1 occurrence indicators with the resulting probability.- Parameters:
nsim (
int) – Forwarded to each sub-model’sOM.simulate().obs (
Optional[int]) – Forwarded to each sub-model’sOM.simulate().**kwargs – Forwarded to each sub-model’s
OM.simulate().seed (
Optional[int]) – Master seed. Derived seedsseedandseed + 1are passed to the two sub-model calls so the joint result is reproducible from a single integer.
- Returns:
probabilitycarries the combined probability series;occurrencecarries the 0/1 indicators;model_a/model_bcarry the sub-modelSimulateResultinstances (with theirlatentfields exposed for any downstream inspection).- Return type:
SimulateResult
Parent Class: OMG