statsmodels.stats.nonparametric.rankdata_2samp¶
- statsmodels.stats.nonparametric.rankdata_2samp(x1, x2)[source]¶
Compute midranks for two samples
- Parameters:
- x1, x2numpy:array_like
Original data for two samples that will be converted to midranks.
- Returns:
- rank1
ndarray
Midranks of the first sample in the pooled sample.
- rank2
ndarray
Midranks of the second sample in the pooled sample.
- ranki1
ndarray
Internal midranks of the first sample.
- ranki2
ndarray
Internal midranks of the second sample.
- rank1