ruspy.estimation.mpec.mpec_loglike_cost_params_derivative
- ruspy.estimation.mpec.mpec_loglike_cost_params_derivative(mpec_params, maint_func, maint_func_dev, num_states, disc_fac, scale, decision_mat, state_mat)[source]
Computing the analytical gradient of the objective function for MPEC.
- Parameters
- mpec_params
numpy.ndarray
see MPEC
- maint_func: func
- maint_func_dev: func
- num_states
python:int
The size of the state space.
- disc_fac
numpy.float
see Discount factor
- scale
numpy.float
see Scale
- decision_mat
numpy.ndarray
see Decision Matrix
- state_mat
numpy.ndarray
see State matrix
- mpec_params
- Returns
- gradient
numpy.ndarray
Vector that holds the derivative of the negative log likelihood function to the parameters.
- gradient