iode.Identity

class iode.Identity(lec: str)[source]

An identity is an expression written in the LEC language that allows the construction of a new statistical series based on already defined series. In general, identities are executed in groups to create or update a set of variables. Identities can be executed for a specific range of periods, or for all periods defined in the workspace.

Identities should not be confused with equations. They are not part of a model.

Parameters:
lec: str

formula (LEC expression) used to construct a series.

Attributes:
coefficients

Return the list of coefficients present in the current identity.

variables

Return the list of variables present in the identity.

Methods

copy()

Return a copy of the current Identity.

get_instance

Examples

>>> from iode import Identity
>>> idt = Identity("FLG/VBBP")
>>> idt
Identity('FLG/VBBP')
__init__(lec: str) Self[source]

Methods

__init__(lec)

copy()

Return a copy of the current Identity.

get_instance()

Attributes

coefficients

Return the list of coefficients present in the current identity.

variables

Return the list of variables present in the identity.