bundles / scipy 1.17.1 / scipy / stats / _mstats_basic / count_tied_groups
function
scipy.stats._mstats_basic:count_tied_groups
Signature
def count_tied_groups ( x , use_missing = False ) Summary
Counts the number of tied values.
Parameters
x: sequenceSequence of data on which to counts the ties
use_missing: bool, optionalWhether to consider missing values as tied.
Returns
count_tied_groups: dictReturns a dictionary (nb of ties: nb of groups).
Examples
from scipy.stats import mstats import numpy as np z = [0, 0, 0, 2, 2, 2, 3, 3, 4, 5, 6]✓
mstats.count_tied_groups(z)
✗z = np.ma.array([0, 0, 1, 2, 2, 2, 3, 3, 4, 5, 6])
✓mstats.count_tied_groups(z)
✗z[[1,-1]] = np.ma.masked
✓mstats.count_tied_groups(z, use_missing=True)
✗Aliases
-
scipy.stats._mstats_basic.count_tied_groups