-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: permutation test #157
Comments
I don't understand what this test should do. Function with provided signature could only compute |
You're absolutely right. I meant:
That is, (function of labels, samples to test statistic) -> number of runs -> labels -> samples -> p-value. |
It would be basically (with
|
Although it should be |
This should be relatively straightforward to implement: type
permutationTest :: (v a -> v b -> Double) -> Int -> PValue
, i.e. takes in a function that takes a vector of labels and a vector of samples to report a test statistic, a number of random runs, and returns the p-value (possibly with the observed test statistic of the samples with labels).The text was updated successfully, but these errors were encountered: