When trying to summarise results from a pgmm object there is the following error message:
Error in t(y) %*% x : non-conformable arguments
Same problem is reported at:
https://stackoverflow.com/questions/10138633/pgmm-from-plm-package-gives-error-for-summary
It only happens when T<5. The problem seems to be that summary is calculating the mtest() autocorrelation test function for orders T=1 and T=2, which is not possible whenever T=3 and T=4 (since it does both, it is only possible to get a summary for T>=5).
Solution provided in the link results in yet another error:
Error in printCoefmat(x$coefficients, digits = digits) :
'x' must be coefficient matrix/data frame
Which problably is due to the coefficients attribute of a pgmm object being a list, resulting in error in the the function printCoefmat(). However, including some kind of if statement in the summary function for pgmm may solve the issue.
When trying to summarise results from a pgmm object there is the following error message:
Error in t(y) %*% x : non-conformable arguments
Same problem is reported at:
https://stackoverflow.com/questions/10138633/pgmm-from-plm-package-gives-error-for-summary
It only happens when T<5. The problem seems to be that summary is calculating the mtest() autocorrelation test function for orders T=1 and T=2, which is not possible whenever T=3 and T=4 (since it does both, it is only possible to get a summary for T>=5).
Solution provided in the link results in yet another error:
Error in printCoefmat(x$coefficients, digits = digits) :
'x' must be coefficient matrix/data frame
Which problably is due to the coefficients attribute of a pgmm object being a list, resulting in error in the the function printCoefmat(). However, including some kind of if statement in the summary function for pgmm may solve the issue.