next up previous index
Next: Specified Coefficients Up: Coefficients Previous: Initialization   Index

Loading from and Writing into Storage

The method load() is similar to the one defined in EquationSpecification. It take as arguments:
resources
- an object of class Resources. If the remaining arguments are given, they will have priority over entries of the same name in resources.
in_storage
- an object of class Storage that overwrites the one given in the constructor.
in_table_name
- name of the table/file where the coefficients should be loaded from.
For each of the class properties names, values, standard errors, and submodels, respectively, a table column is expected on the storage. There can be other fields stored too. The column names are given in the resources entries field_coefficient_name, field_estimate, field_standard_error, and field_submodel_id, respectively. Default values are variable_name, coefficient_name, equation_id, and sub_model_id. If there are other fields in the table, the column names are given in the entry other_fields which is a list of character strings. The default value is ['t_statistic', 'p_value'].

To store coefficients into a storage, use the method write(resources, out_storage, out_table_name). The behavior is analogous to the load() method.

The class also allows to create a coefficient table in the LATEX format. Method make_tex_table() accepts as arguments the file name (without `.tex'), optionally the directory path and headers for each column.


next up previous index
Next: Specified Coefficients Up: Coefficients Previous: Initialization   Index
info (at) urbansim.org