Open mkao006 opened 8 years ago
The problem has surfaced in issue #48.
We will first add in try-catch to identify the commodity which raised the problem, then maybe implement a quick fix with while loop.
The problem in issue #48 is actually not related to this. The problem is resolved with the update of the test in https://github.com/SWS-Methodology/faoswsEnsure/commit/37f1a93fc327f34aca03fd150b4108d1afe3e898
Currently, the imputation of the triplet variable production, area harvested and yield are processed in a specific sequence and namely yield first, then production and balance the area harvested.
This does not guarantee the triplet to be fully imputed and can result in potential problems in the future.
Further, the method does not enable the information contained in the triplet to be used efficiently. Thus a new method is required which recursively impute the variables and terminate when the imputation converges.
Current idea: EM and variational Bayesian.