pypomp.models.UKMeasles.Pomp¶
- static UKMeasles.Pomp(unit: list[str], theta: dict | list[dict], model: str = '001b', interp_method: str = '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 (list[str]) – Which unit to use. Currently only supports one unit.
theta (dict | list[dict]) – Parameters for the model. Can be a single dict or a list of dicts.
model (str) – The model to use. Can be “001b”, “001c”, “001d” or “002”.
interp_method (str) – The method to use to interpolate the covariates. Can be “shifted_splines” or “linear”.
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: