Frequency threshold is specified as an environment parameter.

Also, use the actual itemset frequency rather than the number of transactons in which it appears to establish whether the itemset is frequent.