API Reference (Python)
WORKSPACE
Equations
|
IODE Equations database. |
List of names of all objects in the current database. |
|
Return the object type of the current database. |
|
Return the filepath associated with the current database. |
|
Description of the current database. |
|
|
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. |
|
|
Create a new database instance in which each object is a copy of the original object from the global IODE database. |
|
Create a subset of the database filtered by a name pattern. |
Create a new empty detached database. |
|
|
Print the list equations defined by names to the file filepath using the format format. |
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Return the position of the IODE object with name name in the database. |
|
Returns the list of objects names given a pattern. |
|
Generate an IODE list containing the names of objects that match a given pattern. |
|
Rename an object of the database. |
Return the list of coefficients (scalars) used in the equations of (the subset of) the database. |
|
Return the list of variables used in the equations of (the subset 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) equation(s) referenced by key. |
|
|
Update/add a (subset of) equation(s) referenced by key from/to the Equations database. |
Remove the (subset of) equation(s) referenced by key from the Equations database. |
|
Allow to select the ith equation in the database. |
|
|
Copy (a subset of) equations from the input file(s) 'input_files' into the current database. |
|
Merge the content of the 'other' database into the current database. |
|
Merge all objects stored in the input file 'input_file' into the current database. |
|
The objects of the current database are compared with those stored in the file filepath. |
Whether or not any change made on the present database or subset will modify the global IODE workspace. |
|
Whether or not the present database represents the global IODE workspace. |
Properties and methods specific to Equations
Create a pandas DataFrame from the current Equations database. |
|
Copy the pandas DataFrame df into the IODE Equations database. |
|
Create a pandas DataFrame from the current Equations database. |
|
|
Estimate an equation or a block of equations. |
|
Estimates (an) equation(s) and searches for the best possible test values for all possible combinations of coefficients. |
Number of decimals to print. |
|
Whether to print only the LEC formula, or the LEC formula and the comment, or the LEC formula, the comment and the estimation results of the IODE equations in the current database. |
|
Whether to print the LEC formula of each equation: |
Identities
|
IODE Identities database. |
List of names of all objects in the current database. |
|
Return the object type of the current database. |
|
Return the filepath associated with the current database. |
|
Description of the current database. |
|
|
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. |
|
|
Create a new database instance in which each object is a copy of the original object from the global IODE database. |
|
Create a subset of the database filtered by a name pattern. |
Create a new empty detached database. |
|
|
Print the list identities defined by names to the file filepath using the format format. |
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Return the position of the IODE object with name name in the database. |
|
Returns the list of objects names given a pattern. |
|
Generate an IODE list containing the names of objects that match a given pattern. |
|
Rename an object of the database. |
Return the list of coefficients (scalars) used in the identities of (the subset of) the database. |
|
Return the list of variables used in the identities of (the subset 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) identity(ies) referenced by key. |
|
|
Update/add a (subset of) identity(ies) referenced by key from/to the Identities database. |
Remove the (subset of) identity(ies) referenced by key from the Identities database. |
|
Allow to select the ith identity in the database. |
|
|
Copy (a subset of) identities from the input file(s) 'input_files' into the current database. |
|
Merge the content of the 'other' database into the current database. |
|
Merge all objects stored in the input file 'input_file' into the current database. |
|
The objects of the current database are compared with those stored in the file filepath. |
Whether or not any change made on the present database or subset will modify the global IODE workspace. |
|
Whether or not the present database represents the global IODE workspace. |
Properties and methods specific to Identities
Create a pandas Series from the current Identities database. |
|
Copy the pandas Series s into the IODE Identities database. |
|
Create a pandas Series from the current Identities database. |
|
|
Execute the specified identity(ies). |
Lists
|
IODE Lists database. |
List of names of all objects in the current database. |
|
Return the object type of the current database. |
|
Return the filepath associated with the current database. |
|
Description of the current database. |
|
|
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. |
|
|
Create a new database instance in which each object is a copy of the original object from the global IODE database. |
|
Create a subset of the database filtered by a name pattern. |
Create a new empty detached database. |
|
|
Print the list IODE lists defined by names to the file filepath using the format format. |
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Return the position of the IODE object with name name in the database. |
|
Returns the list of objects names given a pattern. |
|
Generate an IODE list containing the names of objects that match a given 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 list(s) referenced by key. |
|
Update/add a (subset of) IODE list(s) referenced by key from/to the Lists database. |
|
Remove the (subset of) IODE list(s) referenced by key from the Lists database. |
Allow to select the ith list in the database. |
|
|
Copy (a subset of) lists from the input file(s) 'input_files' into the current database. |
|
Merge the content of the 'other' database into the current database. |
|
Merge all objects stored in the input file 'input_file' into the current database. |
|
The objects of the current database are compared with those stored in the file filepath. |
Whether or not any change made on the present database or subset will modify the global IODE workspace. |
|
Whether or not the present database represents the global IODE workspace. |
Properties and methods specific to Lists
Create a pandas Series from the current Lists database. |
|
Copy the pandas Series s into the IODE Lists database. |
|
Create a pandas Series from the current Lists database. |
Scalars
|
IODE Scalars database. |
List of names of all objects in the current database. |
|
Return the object type of the current database. |
|
Return the filepath associated with the current database. |
|
Description of the current database. |
|
|
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. |
|
|
Create a new database instance in which each object is a copy of the original object from the global IODE database. |
|
Create a subset of the database filtered by a name pattern. |
Create a new empty detached database. |
|
|
Print the list scalars defined by names to the file filepath using the format format. |
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Return the position of the IODE object with name name in the database. |
|
Returns the list of objects names given a pattern. |
|
Generate an IODE list containing the names of objects that match a given 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) scalar(s) referenced by key. |
|
Update/add a (subset of) scalar(s) referenced by key from/to the Scalars database. |
|
Remove the (subset of) scalar(s) referenced by key from the Scalars database. |
Allow to select the ith scalar in the database. |
|
|
Copy (a subset of) scalars from the input file(s) 'input_files' into the current database. |
|
Merge the content of the 'other' database into the current database. |
|
Merge all objects stored in the input file 'input_file' into the current database. |
|
The objects of the current database are compared with those stored in the file filepath. |
Whether or not any change made on the present database or subset will modify the global IODE workspace. |
|
Whether or not the present database represents the global IODE workspace. |
Properties and methods specific to Scalars
Create a pandas DataFrame from the current Scalars database. |
|
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. |
|
Number of decimals to print. |
Tables
|
IODE Tables database. |
List of names of all objects in the current database. |
|
Return the object type of the current database. |
|
Return the filepath associated with the current database. |
|
Description of the current database. |
|
|
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. |
|
|
Create a new database instance in which each object is a copy of the original object from the global IODE database. |
|
Create a subset of the database filtered by a name pattern. |
Create a new empty detached database. |
|
|
Print the list tables defined by names to the file filepath using the format format. |
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Return the position of the IODE object with name name in the database. |
|
Returns the list of objects names given a pattern. |
|
Generate an IODE list containing the names of objects that match a given pattern. |
|
Rename an object of the database. |
Return the list of coefficients (scalars) used in the tables of (the subset of) the database. |
|
Return the list of variables used in the tables of (the subset 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) table(s) referenced by key. |
|
Update/add a (subset of) table(s) referenced by key from/to the Tables database. |
|
Remove the (subset of) table(s) referenced by key from the Tables database. |
Allow to select the ith table in the database. |
|
|
Copy (a subset of) tables from the input file(s) 'input_files' into the current database. |
|
Merge the content of the 'other' database into the current database. |
|
Merge all objects stored in the input file 'input_file' into the current database. |
|
The objects of the current database are compared with those stored in the file filepath. |
Whether or not any change made on the present database or subset will modify the global IODE workspace. |
|
Whether or not the present database represents the global IODE workspace. |
Properties and methods specific to Tables
Number of decimals to print. |
|
Whether to print the full definitions, only the titles or the computed values of the IODE tables in the current database. |
Variables
|
IODE Variables database. |
List of names of all objects in the current database. |
|
Return the object type of the current database. |
|
Return the filepath associated with the current database. |
|
Description of the current database. |
|
|
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. |
|
|
Create a new Variables database in which each variable is a copy of the original variable from the global Variables workspace. |
|
Create a subset of the database filtered by a name pattern. |
Create a new empty detached database. |
|
|
Print the list variables defined by names to the file filepath using the format format. |
|
Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment... |
|
Return the position of the IODE object with name name in the database. |
|
Returns the list of objects names given a pattern. |
|
Generate an IODE list containing the names of objects that match a given 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) variable(s) referenced by key. |
|
|
Update/add a (subset of) variable(s) referenced by key from/to the Variables database. |
Remove the (subset of) variable(s) referenced by key from the Variables database. |
|
Allow to select the ith variable in the database. |
|
|
Copy (a subset of) variables from the input file(s) 'input_files' into the current database. |
|
Merge the content of the 'other' database into the current database. |
|
Merge all objects stored in the input file 'input_file' into the current database. |
|
The objects of the current database are compared with those stored in the file filepath. |
Whether or not any change made on the present database or subset will modify the global IODE workspace. |
|
Whether or not the present database represents the global IODE workspace. |
Properties and methods specific to Variables
Current display mode for the IODE Variables values. |
|
Current (or new) sample of the IODE Variables database. |
|
Return the number of periods from the current Variables sample. |
|
Return the list of periods from the current Variables sample. |
|
Return the list of periods as string from the current Variables sample. |
|
Return the list of periods as float from the current Variables sample. |
|
Threshold under which the difference between 2 variables are considered equal. |
|
|
Add other to the current (subset of) Variables object. |
|
Add other to the current (subset of) Variables object. |
|
Add other to the current (subset of) Variables object. |
|
Subtract other from the current (subset of) Variables object. |
|
subtract self from other. |
|
subtract other from the current (subset of) Variables object. |
|
multiply the current (subset of) Variables object by other. |
|
multiply other by the current (subset of) Variables object. |
|
multiply the current (subset of) Variables object by other. |
|
divide the current (subset of) Variables object by other. |
|
divide other by the current (subset of) Variables object. |
|
divide the current (subset of) Variables object by other. |
|
Compute the expression \(self^{other}\) ( self ** other ). |
|
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. |
|
Execute the RAS algorithm (also called IPF for 'Iterative Proportional Fitting'). |
|
Copy the numpy ndarray array into the IODE Variables database. |
Create a Numpy ndarray from the current Variables database. |
|
Create a pandas DataFrame from the current Variables database. |
|
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. |
|
Plot the variables defined by names for the periods defined by periods. |
|
Convert an external file representing IODE variables to an IODE variables file (.var). |
|
Convert an IODE Variables file to a format used by some other programs. |
Miscellaneous
|
Load extra file(s) referenced in generalized samples. |
reset extra files referenced in generalized samples. |
IODE OBJECTS
EQUATION
|
An equation represents an equality mixing variables and scalars (coefficients) and is part of a model. |
Endogenous variable of the current equation. |
|
LEC expression of the current equation. |
|
Estimation sample of the current equation. |
|
Estimation method. |
|
Equation comment. |
|
Estimation block of equations to which the equation belongs. |
|
Instrument(s) used for the estimation. |
|
Estimation tests. |
|
Return the list of coefficients present in the current equation. |
|
Return the list of variables present in the equation. |
|
Return a copy of the current Equation. |
|
|
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. |
|
Estimates an equation and searches for the best possible test values for all possible combinations of coefficients. |
IDENTITY
|
An identity is an expression written in the LEC language that allows the construction of a new statistical series based on already defined series. |
Return the LEC formula of the identity. |
|
Return the list of coefficients present in the current identity. |
|
Return the list of variables present in the identity. |
|
Return a copy of the current Identity. |
LIST
|
Split an IODE list written as a string and return a Python list. |
SCALAR
|
Scalars are essentially estimated coefficients of econometric equations. |
Return a copy of the current Scalar. |
TABLE
|
One of the most frequently performed operations during a simulation exercise is the display of tables of results and charts. |
Title of the table. |
|
Language. |
|
Minimum values on the Y axis. |
|
Maximum values on the Y axis. |
|
The gridx value of the table offers a choice of three X-grid options: |
|
The gridy value of the table offers a choice of three Y-grid options: |
|
Graph axis of the table allows you to select the type of axis: |
|
Graph alignment of the table. |
|
Whether the graph should be boxed. |
|
Whether or not to place a shadow behind the chart. |
|
Returns the divider line of the table. |
|
Get the list of coefficients (scalars) associated with all cells of type 'LEC' of the table. |
|
Get the list of variables associated with all cells of the type 'LEC' of the table. |
|
|
Compute the values corresponding to LEC expressions in cells. |
Return a copy of the current Table. |
|
|
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. |
|
Plot the table using the sample of the variables workspace. |
IODE Table line. |
|
Type of the table line. |
|
Whether or not the values of the present line correspond to the Y axis displayed on the left of the graph. |
|
Graph type associated with the table line. |
|
|
Get the cell of a line. |
|
Update the content of a cell of the line. |
|
IODE Table cell. |
|
Type of the content of the cell. |
|
Alignment of the text in the cell. |
|
Whether or not the cell text is bold. |
|
Whether or not the cell text is italic. |
|
Whether or not the cell text is underline. |
|
Get the list of coefficients (scalars) associated with the LEC expression of a cell of type 'LEC'. |
|
Get the list of variables associated with the LEC expression of a cell of type 'LEC'. |
COMPUTED TABLE
Object returned by the method |
|
The number of decimals used for rounding the values when displayed. |
|
The number of lines of the computed table. |
|
List of line names of the computed table. |
|
The number of columns of the computed table. |
|
List of column names of the computed table. |
|
The number of files used to compute the table. |
|
The list of files associated with the computed table. |
|
The number of operations between files. |
|
The sample associated with the computed table. |
|
The number of periods associated with the computed table. |
|
The title of the computed table. |
|
Minimum values on the Y axis. |
|
Maximum values on the Y axis. |
|
The gridx value of the table offers a choice of three X-grid options: |
|
The gridy value of the table offers a choice of three Y-grid options: |
|
Graph axis of the table allows you to select the type of axis: |
|
Graph alignment of the table. |
|
|
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. |
|
Print the present computed table to a file. |
|
Plot the computed table. |
Returns a dictionary containing the data to be plotted. |
TIME
|
|
Corresponding year of the period |
|
Possible values are: |
|
Position of the period in the year |
|
|
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 float representation of the period. |
|
|
A sample represents the series of sub periods attached to the IODE variables or to the estimation process. |
|
Position of the 'period' in the sample. |
|
List of all periods of the sample. |
|
Compute the intersection between two samples. |
ESTIMATION
|
Estimate the present equation. |
|
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. |
Indicates the convergence threshold below which the simulation ends positively for the current period. |
|
Relaxation parameter. |
|
Sorting algorithm used to reorganized the list of equations before the simulation is performed. |
|
Sorting algorithm used to reorganized the list of equations before the simulation is performed. |
|
At the start of each period to be simulated, a starting value must be chosen for each endogenous variable. This value can be : - \(Y := Y[-1], if Y null or NA\) (TM1) : each null or NA endogen at the start takes the value of the previous period, - \(Y := Y[-1], always\) (TM1_A) : each endogen takes the value of the previous period at the start, - \(Y := extrapolation, if Y null or NA\) (EXTRA) : each null or NA endogen takes as value a linear extrapolation of the two previous periods, - \(Y := extrapolation, always\) (EXTRA_A) : each endogen takes as its value a linear extrapolation of the two preceding periods, whether or not it is zero at the start, - \(Y unchanged\) (ASIS): endogenous values are not initialized. They retain their value whether or not they are zero, - \(Y := Y[-1], if Y = NA\) (TM1_NA): each NA value takes the value of the previous period, - \(Y := extrapolation, if Y = NA\) (EXTRA_NA): each NA value takes the value of a linear extrapolation of the two previous periods. |
|
At the start of each period to be simulated, a starting value must be chosen for each endogenous variable. |
|
Maximum number of iterations to reach a solution. |
|
Maximum number of iterations when the Newton-Raphson algorithm is used. |
|
Number of passes to make when the pseudo-triangulation sorting algorithm is used. |
|
Option to automatically generates IODE lists containing pre-recursive, interdependent and post-recursive equations: _PRE, _INTER and _POST. |
|
Save a trace of the sub-iterations when the Newton-Raphson alogrithm is used. |
|
|
Number of iterations to converge in the last simulation for the period period. |
|
Save the number of iterations needed to complete each simulated period in a new variable named var_name. |
|
Get the norm value of the last simulation for the period period. |
|
Save the lowest norm value reached to complete each simulated period in a new variable named var_name. |
|
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. |
|
Set the value of t in {report expressions}. |
|
Increment the value of t in {report expressions} by a given number of periods. |
GRAPHICAL USER INTERFACE
|
Open the Graphical User Interface to view and edit the IODE databases. |
PRINT
|
Initialize a new output session |
Flush the output session buffer |
|
End an output session |
|
|
Send a string into the current opened buffer |
|
Print a title of the given level |
|
Print a bulleted paragraph of the given level |
|
Print a paragraph of the given level |
|
Start a code block of the given level or end the block if level < 0 |
|
Define the page header as from the current page |
|
Define the page footer as from the current page |
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 |
Comments
Comments([filepath])IODE Comments database.
Comments.namesList of names of all objects in the current database.
Comments.iode_typeReturn the object type of the current database.
Comments.filenameReturn the filepath associated with the current database.
Comments.descriptionDescription of the current database.
Comments.load(filepath)Load objects stored in file 'filepath' into the current database.
Comments.save(filepath[, compress])Save objects of the current database into the file 'filepath'.
Comments.clear()Delete all objects from the current database.
Comments.copy([pattern])Create a new database instance in which each object is a copy of the original object from the global IODE database.
Comments.new_detached()Create a new empty detached database.
Comments.subset(pattern, copy)Create a subset of the database filtered by a name pattern.
Comments.print_to_file(filepath[, names, format])Print the list comments defined by names to the file filepath using the format format.
Comments.get_names([pattern, filepath])Returns the list of objects names given a pattern.
Comments.get_names_from_pattern(list_name, ...)Generate an IODE list containing the names of objects that match a given pattern.
Comments.rename(old_name, new_name[, overwrite])Rename an object of the database.
Comments.search(pattern[, word, ...])Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment...
Comments.index(name)Return the position of the IODE object with name name in the database.
Comments.__len__()Return the number of IODE objects in the current database.
Comments.__contains__(item)Test if the IODE object named item is present in the current database.
Comments.__iter__()Iterate over object names.
Comments.__getitem__(key)Return the (subset of) comment(s) referenced by key.
Comments.__setitem__(key, value)Update/add a (subset of) comment(s) referenced by key from/to the Comments database.
Comments.__delitem__(key)Remove the (subset of) comment(s) referenced by key from the Comments database.
Comments.iAllow to select the ith comment in the database.
Comments.copy_from(input_files[, names])Copy (a subset of) comments from the input file(s) 'input_files' into the current database.
Comments.merge(other[, overwrite])Merge the content of the 'other' database into the current database.
Comments.merge_from(input_file)Merge all objects stored in the input file 'input_file' into the current database.
Comments.compare(filepath[, ...])The objects of the current database are compared with those stored in the file filepath.
Comments.is_detachedWhether or not any change made on the present database or subset will modify the global IODE workspace.
Comments.is_global_workspaceWhether or not the present database represents the global IODE workspace.
Properties and methods specific to Comments
Comments.seriesCreate a pandas Series from the current Comments database.
Comments.from_series(s)Copy the pandas Series s into the IODE Comments database.
Comments.to_series()Create a pandas Series from the current Comments database.
Comments.convert_file(input_file, ...[, ...])Convert an external file representing IODE comments to an IODE comments file (.cmt).