Hello! :) I'm currently having difficulty calculating the MDD for bivariate MF-BVAR models. I have six monthly indicators and quarterly hpi data. I want to compute the MDD for the bivariate MF-BVAR models between hpi and each indicator, but I keep encountering the following error:
'Error in apply(Y[, freq == "m"], 2, is.na) :
dim(X) must have a positive length value'
However, there seems to be no issue when calculating the MDD for multivariate models with two or more indicators along with hpi. Please look at the following code. When I add only one indicator to mflist, I encounter the error, but with two or more, I can obtain the MDD.
Hello! :) I'm currently having difficulty calculating the MDD for bivariate MF-BVAR models. I have six monthly indicators and quarterly
hpi
data. I want to compute the MDD for the bivariate MF-BVAR models betweenhpi
and each indicator, but I keep encountering the following error:'Error in apply(Y[, freq == "m"], 2, is.na) : dim(X) must have a positive length value'
However, there seems to be no issue when calculating the MDD for multivariate models with two or more indicators along with
hpi
. Please look at the following code. When I add only one indicator tomflist
, I encounter the error, but with two or more, I can obtain the MDD.Could you please advise me to solve this problem? Thank you in advance!
you can find the data here (all variables are log-differenced):