grahamjwhite/IndexNumR

Error not thrown when there are no overlapping products

Closed this issue · 2 comments

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.

fix for bilateral indices 282fe05

fix for multilateral indices 0b8121d