statsmodels.sandbox.stats.runs.median_test_ksample

statsmodels.sandbox.stats.runs.median_test_ksample(x, groups)[source]

chisquare test for equality of median/location

This tests whether all groups have the same fraction of observations above the median.

Parameters
xarray_like

data values stacked for all groups

groupsarray_like

group labels or indicator

Returns
statfloat

test statistic

pvaluefloat

pvalue from the chisquare distribution

others ????

currently some test output, table and expected