pypomp.models.UKMeasles.Pomp

classmethod UKMeasles.Pomp(unit: str, theta: PompParameters, model: Literal['001', '001b', '001d', '002', '002d', '003'] = '001b', interp_method: Literal['shifted_splines', 'linear'] = 'shifted_splines', first_year: int = 1950, last_year: int = 1963, dt: float = 0.0027378507871321013, clean=False)[source]

Returns a Pomp object for the UK Measles data.

Parameters:
  • unit (str) – The name of the unit to use.

  • theta (PompParameters) – Parameters for the model.

  • model ({"001", "001b", "001d", "002", "002d", "003"}) – The sub-model variant to use. See the class-level documentation for details on each variant.

  • interp_method ({"shifted_splines", "linear"}) – The method to use to interpolate the covariates.

  • first_year (int) – The first year of the data to use.

  • last_year (int) – The last year of the data to use.

  • dt (float) – The time step size to use for the model.

  • clean (bool) – If True, uses a copy of the data with suspicious values set to np.nan.

Returns:

A Pomp object for the UK Measles data.

Return type:

Pomp