ruspy.estimation.mpec.mpec_loglike_cost_params¶
-
ruspy.estimation.mpec.
mpec_loglike_cost_params
(maint_func, maint_func_dev, num_states, num_params, state_mat, decision_mat, disc_fac, scale, gradient, mpec_params, grad)[source]¶ Calculate the negative partial log likelihood for MPEC depending on cost parameters as well as the discretized expected values.
- Parameters
- maint_func: func
- maint_func_dev: func
- num_states
python:int
The size of the state space.
- num_params
python:int
Length of cost parameter vector.
- state_mat
numpy.array
see State matrix
- decision_mat
numpy.array
see Decision Matrix
- disc_fac
numpy.float
see Discount factor
- scale
numpy.float
see Scale
- gradient
python:str
Indicates whether analytical or numerical gradient should be used.
- mpec_params
numpy.array
see MPEC
- grad
numpy.array
, optional The gradient of the function. The default is np.array([]).
- Returns
- log_like:
python:float
Contains the negative partial log likelihood for the given parameters.
- log_like: