Produce (negative) log marginal likelihood for QMLE with correlated random coefficients
loglikelihood_QMLE(param, n_alpha, X_mat, Y_mat, Z_mat, W, T, N, aux_Y0)
vectores of parameters to optimize over
number of external variables
lagged dependent variable matrix
dependent variable matrix
external variable matrix
cross-sectionally invariant variables - not used now
time dimension of the data
cross-sectional dimension of the data
auxiliary matrix with initial observations of the dependent variable