py-ecomplexity icon indicating copy to clipboard operation
py-ecomplexity copied to clipboard

RPOP - Handling zeros in diversity / ubiquity

Open shreyasgm opened this issue 3 years ago • 2 comments

Diversity / ubiquity is often 0 when calculating with RPOP. Need better handling of these cases, since ECI / PCI show up as NaN for all countries in these cases (the eigenvectors are returned as NaN's).

shreyasgm avatar Oct 01 '21 14:10 shreyasgm

Just ran into this issue when testing rpop. How can I work around it?

fedemoscatelli avatar Mar 16 '23 10:03 fedemoscatelli

Simple workaround for now - run ecomplexity once, then filter for diversity and ubiquity > 0 and then run again. Merge the dropped countries and products back in so you don't lose any data.

shreyasgm avatar Mar 16 '23 10:03 shreyasgm