Datawheel / canon-stats

Reusable statistical and complexity calculations using NodeJS and Express
1 stars 1 forks source link

add thresholding support for any calc with RCA #6

Closed alexandersimoes closed 4 years ago

alexandersimoes commented 4 years ago

The idea here is to give the ability to add minimum threshold values for each dimension when an RCA calculation is required. For example this endpoint: https://dev.oec.world/api/stats/eci?cube=trade_i_baci_a_92&rca=Exporter+Country,HS4,Trade+Value&Year=2016&alias=Country,HS4

Shows the Faroe Islands as the most complex country by patents:

Screen Shot 2020-01-10 at 6 09 30 PM

So giving the ability to have a minimum Measure value requirement per dim1 and dim2 of the RCA argument would be helpful.

cnavarreteliz commented 4 years ago

I will rethink my logic, because in this moment I'm using directly the RCA calc provided by tesseract. I will calculate RCA directly in canon-stats.

cnavarreteliz commented 4 years ago

I included threshold_<DIM1> as param