statsmodels.stats.nonparametric.rankdata_2samp

statsmodels.stats.nonparametric.rankdata_2samp(x1, x2)[source]

Compute midranks for two samples

Parameters:
x1, x2array_like

Original data for two samples that will be converted to midranks.

Returns:
rank1ndarray

Midranks of the first sample in the pooled sample.

rank2ndarray

Midranks of the second sample in the pooled sample.

ranki1ndarray

Internal midranks of the first sample.

ranki2ndarray

Internal midranks of the second sample.


Last update: Nov 14, 2024