It looks like line 26 (disc <- totalPairs - conc) overrides correct disc value and should be removed. Otherwise tied is always calculated to 0
It looks like line 26 (disc <- totalPairs - conc) overrides correct disc value and should be removed. Otherwise tied is always calculated to 0