Closed mkao006 closed 8 years ago
The model which gave negative imputation was the moving average model. However, this is a numerical error as the negative values are of order 1e-14.
defaultMovingAverage(check) [1] 1.336133e+02 4.887667e+02 4.887667e+02 4.887667e+02 3.637333e+02 [6] 2.585000e+02 1.793000e+02 8.983333e+01 6.233333e+00 -2.250052e-14 [11] -2.250052e-14 -2.250052e-14 -2.250052e-14 -2.250052e-14 -2.250052e-14 [16] -2.250052e-14
The error message is as follow:
Step 1: Extract Transfer Animal Slaughtered from animal commodity to Meat Extracting the commodity trees with shares Extracting production triplet for item 21122 (Meat) Extracting production triplet for item 02154 (Animal) Extracting production triplet for item 21160.03 (Non-meat Child) Transferring animal slaughtered from animal to meat commodity Step 2: Perform Imputation on the Meat Triplet Performing Imputation Initializing ... Imputing Yield ... Number of values imputed: 250 Number of values still missing: 144 Imputing Production ... Error in computeEnsemble(fits = modelFits, weights = modelWeights, errors = modelErrors) (from #202) : Imputation gave negative result