model_funcs¶
Submodules¶
Functions¶
|
Compute possible current beginning of period resources. |
Create dictionary with state space functions. |
|
Create dictionary with utility functions for the final period. |
|
Create dictionary with utility functions. |
Package Contents¶
- model_funcs.budget_constraint(period: int, lagged_choice: int, asset_end_of_previous_period: float, income_shock_previous_period: float, model_specs: Dict[str, Any], params: Dict[str, float]) float¶
Compute possible current beginning of period resources.
Given the savings grid of the previous period (t -1) and the current state vector in t, including the agent’s lagged discrete choice made in t-1.
- Parameters:
state_beginning_of_period (np.ndarray) – 1d array of shape (n_state_variables,) denoting the current child state.
savings_end_of_previous_period (float) – One point on the exogenous savings grid carried over from the previous period.
income_shock_pervious_period (float) – Stochastic shock on labor income; may or may not be normally distributed. This float represents one particular realization of the income_shock_draws carried over from the previous period.
params (dict) – Dictionary containing model parameters.
model_specs (dict) – model_specs dictionary.
- Returns:
The beginning of period wealth in t.
- Return type:
(float)
- model_funcs.create_state_space_function_dict()¶
Create dictionary with state space functions.
- Returns:
Dictionary with state space functions.
- Return type:
state_space_functions (dict)
- model_funcs.create_final_period_utility_function_dict()¶
Create dictionary with utility functions for the final period.
- Returns:
- Dictionary with utility functions
for the final period.
- Return type:
utility_functions_final_period (dict)
- model_funcs.create_utility_function_dict()¶
Create dictionary with utility functions.
- Returns:
Dictionary with utility functions.
- Return type:
utility_functions (dict)