[NET-294] Add quickperms from PALM #132
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Permutation within groups has been a desired feature. This allows testing groups vs each other, or isolating groups of subjects.
PALM already does this. This is a first draft of integrating that method in. This only allows currently for two groups being permuted within each other. If we have groups A and B, all subjects in A will be permuted with other subjects in A. All subjects in B will be permuted with subjects in B.
There are other methods PALM allows that we can discuss adding in. That will take more work and probably some gui changes.
All the PALM functions are in one very large file. While this file is huge, it shouldn't need any updating or editing at the moment.
The permutation is done in a new permutation object - QuickPerm. To lessen confusion, it's implemented here by grouping subjects with positive integers.
To integrate PALM and the within group permutations two things need to be added to this. A vector of all 1's (this is to enable permuting off all values) and then a vector of integers from 1 -> number of subjects of each group. This is to allow permutation in the groups. More info can be found here