statsmodels.stats.nonparametric.rankdata_2samp¶ statsmodels.stats.nonparametric.rankdata_2samp(x1, x2)[source]¶ Compute midranks for two samples Parameters:¶ x1, x2array_likeOriginal data for two samples that will be converted to midranks. Returns:¶ rank1ndarrayMidranks of the first sample in the pooled sample. rank2ndarrayMidranks of the second sample in the pooled sample. ranki1ndarrayInternal midranks of the first sample. ranki2ndarrayInternal midranks of the second sample.