Error not thrown when there are no overlapping products
Closed this issue · 2 comments
grahamjwhite commented
When matched sample indices are produced, no error is thrown when no matches are found between two periods. The matching code returns empty vectors for the two periods then proceeds to attempt to calculate the index. This results in incorrect index values when using the Tornqvist index for either a bilateral or multilateral index, since it returns a value of 1 when comparing these two periods.
grahamjwhite commented
fix for bilateral indices 282fe05
grahamjwhite commented
fix for multilateral indices 0b8121d