respy.config
#
General configuration for respy.
Module Contents#
- respy.config.COVARIATES_DOT_PRODUCT_DTYPE[source]#
numpy.dtype : Dtype of covariates before being used in a dot product.
If you convert a DataFrame with boolean variables and others to an NumPy array, the resulting array will have an ‘object’ dtype. Having an ‘object’ dtype array causes a lot of problems as functions like
numpy.exp()
will fail raising an uninformative error message.
- respy.config.INDEXER_DTYPE[source]#
numpy.dtype : Data type for the entries in the state space indexer.
- respy.config.INDEXER_INVALID_INDEX[source]#
int : Identifier for invalid states.
Every valid state has a unique number which is stored in the state space indexer at the correct position. Invalid entries in the indexer are filled with
INDEXER_INVALID_INDEX
which is the most negative value forINDEXER_DTYPE
. Using the invalid value as an index likely raises anIndexError
as negative indices cannot exceed the length of the indexed array dimension.
- respy.config.KEANE_WOLPIN_1997_MODELS = ['kw_97_basic', 'kw_97_basic_respy', 'kw_97_extended', 'kw_97_extended_respy'][source]#