Major bugs fixed:
- Fix discrepancy where fastxtile ignored duplicate cutpoints while xtile respects them, generating different results. The behaviour now matches xtile for non-unique quantiles stored in cutpoints().
Crashes fixed:
- Fix crash when nquantiles>100. Thanks to Laszlo Sandor for reporting it.
- Prevent hitting Stata's limit for pairs of nested parentheses (249) when number of quantiles approaches 250.
- Fix crash when cutvalues() has many values, due to Stata's 255 character string length limitation.
Improvements:
- Speed up fastxtile handling of cutpoints (Stata is much faster at accessing scalars than matrices).