Hi. I have been using command 'rolling' to estimate a rolling OLS regression of Y on X1. I have been trying to store the rolling constant estimates together with the underlying p-values. Specifically, I am running the following command:
rolling alfa=_b["_cons"] pval=r(table)["pvalue" ,"_cons"], window(20): regress Y X1
I am getting the following error message.
type mismatch
error in expression: r(table)
r(109);
Could anyone bring some light? Thank you.
rolling alfa=_b["_cons"] pval=r(table)["pvalue" ,"_cons"], window(20): regress Y X1
I am getting the following error message.
type mismatch
error in expression: r(table)
r(109);
Could anyone bring some light? Thank you.
Comment