Compute the log-likelihood function
Get_llk(P, Y, Z, N, mat, We, Wpca, K0Z, K1Z, SSZ, LoadBs, LoadAs, ModelType)
P
: time-series of spanned factors (N x T or CN x T)Y
: time-series of yields (J x T or CJ x T)Z
: time-series of risk factors (F x T)N
: number of country-specific spanned factorsmat
: vector of maturities (in years) of yields used in estimation (J x 1)We
: matrix of weights of the portfolios observed with errors ((J-N) x J or C(J-N) x CJ)Wpca
: matrix of weights of the portfolios observed without errors (N x J or CN x CJ)K0Z
: matrix of intercepts (P-dynamics)K1Z
: feedback matrix (P-dynamics)SSZ
: variance-covariance matrix (P-dynamics)LoadBs
: list containing the B loadingsLoadAs
: list containing the A loadingsModelType
: string-vector containing the label of the model to be estimatedUseful links