ruspy.estimation.nfxp.loglike_cost_params_individual

ruspy.estimation.nfxp.loglike_cost_params_individual(params, maint_func, maint_func_dev, num_states, trans_mat, state_mat, decision_mat, disc_fac, scale, alg_details)[source]

This is the individual logliklihood function for the estimation of the cost parameters needed for the BHHH optimizer.

Parameters
paramsnumpy.ndarray

see Cost parameters

maint_func: func

see Maintenance cost function

num_statespython:int

The size of the state space.

disc_facnumpy.float

see Discount factor

trans_matnumpy.ndarray

see Transition matrix

state_matnumpy.ndarray

see State matrix

decision_matnumpy.ndarray

see Decision Matrix

Returns
log_likenumpy.ndarray

A num_buses times num_periods dimensional array containing the negative log-likelihood contributions of the individuals.