respy.pre_processing.model_checking#

Everything related to validate the model.

Module Contents#

Functions#

validate_options(o)

Validate the options provided by the user.

validate_params(params, optim_paras)

Validate params.

_validate_shocks(params, optim_paras)

Validate that the elements of the shock matrix are correctly sorted.

_is_positive_nonzero_integer(x)

_is_nonnegative_integer(x)

check_model_solution(optim_paras, options, state_space)

Check properties of the solution of a model.

_apply_to_attribute_of_state_space(attribute, func)

Apply a function to a state space attribute which might be dense or not.

respy.pre_processing.model_checking.validate_options(o)[source]#

Validate the options provided by the user.

respy.pre_processing.model_checking.validate_params(params, optim_paras)[source]#

Validate params.

respy.pre_processing.model_checking._validate_shocks(params, optim_paras)[source]#

Validate that the elements of the shock matrix are correctly sorted.

respy.pre_processing.model_checking._is_positive_nonzero_integer(x)[source]#
respy.pre_processing.model_checking._is_nonnegative_integer(x)[source]#
respy.pre_processing.model_checking.check_model_solution(optim_paras, options, state_space)[source]#

Check properties of the solution of a model.

respy.pre_processing.model_checking._apply_to_attribute_of_state_space(attribute, func)[source]#

Apply a function to a state space attribute which might be dense or not.

Attribute might be state_space.wages which can be a dictionary or a Numpy array.