VECMXResult._refuse#

VECMXResult._refuse(what)[source]#

Raise the shared explanation for a quantity the conditional model lacks.

Parameters:

what (str) – The quantity being asked for, as a noun phrase that fits β€œ{what} is not defined for it”.

Raises:

SpecificationError – Always, with _CONDITIONAL_REFUSAL filled in with the quantity and the exogenous labels.

Return type:

None

Example

>>> import numpy as np
>>> rng = np.random.default_rng(0)
>>> x = np.cumsum(rng.standard_normal((200, 1)), axis=0)
>>> res = VECMX(x + rng.standard_normal((200, 1)), x, order=1, rank=1).fit()
>>> res._refuse("a thing")
Traceback (most recent call last):
cultivars.exceptions.SpecificationError: a conditional vector error-correction model ...