ruspy.estimation.mpec.mpec_loglike_cost_params_derivative_model
- ruspy.estimation.mpec.mpec_loglike_cost_params_derivative_model(num_states, num_params, disc_fac, scale, maint_func_dev, p_choice)[source]
generates the derivative of the log likelihood function of mpec depending on the model characteristics.
- Parameters
- num_states
python:int The size of the state space.
- num_params
python:int Length of cost parameter vector.
- disc_fac
numpy.float see Discount factor
- scale
numpy.float see Scale
- maint_func_dev
func - p_choice numpy.ndarray
num_states x 2 matrix that contains the calculated conditional choice probabilities.
- num_states
- Returns
derivative_bothnumpy.ndarraygives out the derivative of the log likelihood function depending on the model characteristics.