The 'logLikelihood' is computed by assuming an asymmetric Laplace distribution for the response as in logLik.rq
, namely \(n (\log(\tau(1-\tau))-1-\log(\rho_\tau/n))\), where \(\rho_\tau\) is the minimized objective function. When there are multiple quantile curves \(j=1,2,...,J\) (and summ=TRUE
) the formula is
\(n (\sum_j\log(\tau_j(1-\tau_j))-J-\log(\sum_j\rho_{\tau_j}/(n J)))\)
AIC.gcrq
simply returns -2*logLik + k*edf
where k
is 2 or log(n)
.