API Reference
WORKSPACE
Note
Below, Database represents either:
Comments
Equations
Identities
Lists
Scalars
Tables
Variables
names: List[str] |
|
filename: str |
|
description: str |
|
|
Load objects stored in file 'filepath' into the current database. |
|
Save objects of the current database into the file 'filepath'. |
|
Delete all objects from the current database. |
|
Whether or not the present object represents a subset of a global IODE database. |
|
Whether or not the present object represents of a subset of a global IODE database and if the IODE objects of the subset represent deep copies of the IODE objects from the global IODE database. |
|
Create a copy of an IODE database. |
|
Returns the list of objects names given a pattern. |
|
Rename an object of the database. |
Return the number of IODE objects in the current database. |
|
Test if the IODE object named item is present in the current database. |
|
Iterate over object names. |
|
Return the (subset of) IODE object(s) referenced by key. |
|
Update/add a (subset of) IODE object(s) referenced by key from/to the current database. |
|
Remove the (subset of) IODE object(s) referenced by key from the current database. |
|
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Copy (a subset of) objects from the input file(s) 'input_files' into the current database. |
|
|
|
Merge all objects stored in the input file 'input_file' into the current database. |
Equations
IODE Equations database. |
|
df: DataFrame |
|
|
Estimate an equation or a block of equations. |
|
Copy the pandas DataFrame df into the IODE Equations database. |
|
Create a pandas DataFrame from the current Equations database. |
Identities
IODE Identities database. |
|
series: Series |
|
|
Execute the specified identity(ies). |
|
Copy the pandas Series s into the IODE Identities database. |
|
Create a pandas Series from the current Identities database. |
Lists
IODE Lists database. |
|
series: Series |
|
|
Copy the pandas Series s into the IODE Lists database. |
|
Create a pandas Series from the current Lists database. |
Scalars
IODE Scalars database. |
|
df: DataFrame |
|
|
Copy the pandas Series s into the IODE Scalars database. |
|
Copy the pandas DataFrame df into the IODE Scalars database. |
|
Create a pandas DataFrame from the current Scalars database. |
Tables
IODE Tables database. |
Variables
IODE Variables database. |
|
mode: str |
|
sample: Sample |
|
nb_periods: int |
|
periods: List[str] |
|
periods_as_float: List[float] |
|
df: DataFrame |
|
|
Return a subset of the periods from the current Variables sample. |
|
Build series with higher periodicity for stock data (Unemployment, Debt, ...) or flow data (GNP, Deficit, ...). |
|
Build series of lower periodicity by (summing the / taking the average of the / taking the last observation of) sub-periods. |
|
Extrapolate variables using one the method described below, based on previous periods. |
|
Eliminate seasonal variations in monthly series (= variables). |
|
Implementation of the Hodrick-Prescott method for trend series (= variables) construction. |
|
Copy the pandas DataFrame df into the IODE Variables database. |
|
Create a pandas DataFrame from the current Variables database. |
|
Copies the Array array into the IODE Variables database. |
|
Creates an Array from the current IODE Variables database. |
IODE OBJECTS
EQUATION
IODE equation. |
|
endogenous: str |
|
lec: str |
|
sample: Sample |
|
method: str |
|
comment: str |
|
block: str |
|
instruments: Union[str, List[str]] |
|
tests: Dict[str, float] |
|
coefficients: List[str] |
|
variables: List[str] |
|
|
Return the date of last estimation in a given format. |
|
Split an equation into its left-hand side and its right-hand side. |
|
Estimate the present equation. |
LIST
|
Split an IODE list written as a string and return a Python list. |
SCALAR
IODE Scalars are dimensionless variables defined by a single value. |
|
value: float |
|
relax: float |
|
std: float |
TABLE
IODE tables are objects designed to present variables and scalars (results or data) in the form of tables of figures or graphs. |
|
nb_lines: int |
|
nb_columns: int |
|
language: str |
|
ymin: float |
|
ymax: float |
|
gridx: str |
|
gridy: str |
|
graph_axis: str |
|
graph_alignment: str |
|
box: bool |
|
shadow: bool |
|
|
Compute the values corresponding to LEC expressions in cells. |
|
Return the index of the line containing the string key. |
|
Insert a new line in the table. |
Number of lines of the table. |
|
Get a line of the table. |
|
Update a line of the table. |
|
Delete the line at the given index |
|
Append a new line to the table. |
IODE Table line. |
|
axis_left: bool |
|
graph_type: str |
|
line_type: str |
IODE Table cell. |
|
cell_type: str |
|
align: str |
|
bold: bool |
|
italic: bool |
|
underline: bool |
|
variables: List[str] |
COMPUTED TABLE
Object returned by the method |
|
nb_decimals: int |
|
nb_lines: int |
|
lines: List[str] |
|
nb_columns: int |
|
columns: List[str] |
|
nb_files: int |
|
files: List[str] |
|
nb_operations_between_files: int |
|
sample: Sample |
|
nb_periods: int |
|
title: str |
|
|
Check if a cell in the computed table is editable. |
|
Convert the computed table to a larray Array. |
|
Convert the computed table to a pandas DataFrame. |
Get the value of a cell of the computed table. |
|
Assign a new value to a cell. |
TIME
year: int |
|
periodicity: str |
|
step: int |
|
|
Number of sub periods between two periods. |
Number of periods in a year according to the periodicity. |
|
|
Shift the current period by a number of sub periods. |
|
Returns a numerical representation of the period. |
A sample represents the series of sub periods attached to the IODE variables or to the estimation process. |
|
start: Period |
|
end: Period |
|
nb_periods: int |
|
|
Position of the 'period' in the sample. |
|
List of all periods of the sample. |
|
Compute the intersection between two samples. |
ESTIMATION
|
Estimate an equation or a block of equations. |
|
Transform a LEC equation to add a dynamic adjustment. |
|
Dickey-Fuller tests. |
SIMULATION
Class for simulate models. |
|
convergence_threshold: float |
|
relax: float |
|
sort_algorithm: str |
|
initialization_method: str |
|
max_nb_iterations: int |
|
max_nb_iterations_newton: int |
|
nb_passes: int |
|
debug: bool |
|
debug_newton: bool |
|
|
Set a list of endogenous-exogenous pairs for |
|
Recompiles a list of equations, or all equations if no list is specified. |
|
Run the simulation of a model for a given sample. |
|
Decompose the model into Strongly Connex Components (SCC) and reorder it. |
|
Simulates a model previously decomposed into Strongly Connex Components (SCC) and reordered. |
LEC
|
Compute a LEC formula using the current Variables and Scalars databases. |
REPORTS
|
Execute an IODE report. |
|
Execute one or several IODE commands. |
PRINT
|
Initialise a new output session |
|
End an output session. |
|
Flush the output session buffer. |
|
Send a string into the output session buffer. |
|
Print a bulleted paragraph of the given level |
|
Start a code block of the given level or end the block if level < 0 |
|
Print a paragraph of the given level |
|
Print a title of the given level |
|
Define the page header as from the current page |
|
Define the page footer as from the current page |
OTHER LIBRARIES
PANDAS
|
|
|
LARRAY
|
|
|
MISCELLANEOUS
|
Check whether a float value represents a valid IODE number or an IODE Not Available \(NA\) value. |
Suppress the output during an IODE session. |
|
Reset the normal output mechanism during an IODE session. |
DEPRECATED
|
|
|
Clear WS of the given filetype (COMMENTS..VARIABLES) |
Clear all WS |
|
|
Load an IODE file and return the number of read objects |
|
Save the current IODE workspace of a given type |
|
|
|
|
|
|
|
Returns the list of comment names corresponding to the given pattern |
|
|
|
Save the current comment workspace |
|
Returns the list of equation names corresponding to the given pattern |
|
|
|
Save the current equation workspace |
|
Returns the list of identity names corresponding to the given pattern |
|
|
|
Save the current identity workspace |
|
|
|
|
|
Save the current list workspace |
|
|
|
|
|
Save the current scalar workspace |
|
|
|
|
|
Save the current table workspace |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the LEC formula of an IODE identity |
|
Update or create an identity |
|
Execute a list of identities |
|
|
|
|
|
Return a list as a string |
|
Update or create a list from a string |
|
|
|
|
|
Get an IODE scalar in an iode.Scalar class instance |
|
Create or update an IODE scalar from an iode.Scalar class instance |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Comments
CommentsIODE Comments database.
Comments.seriesseries: Series
Comments.from_series(self, s)Copy the pandas Series s into the IODE Comments database.
Comments.to_series(self)Create a pandas Series from the current Comments database.