Repository navigation
Add a one-sample option to network analysis - #2739
Open
akenmorris wants to merge 1 commit into
Open
akenmorris wants to merge 1 commit into
akenmorris wants to merge 1 commit into
Conversation
Tests whether one group's feature differs from zero, using sign flips for the cluster threshold and keeping positive and negative clusters apart. For features that are already a within-subject change, such as a signed wear rate.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #2738.
Adds a one-sample mode to network analysis, with a checkbox in Studio. It tests whether Group 1's feature differs from zero, using a one-sample t-test per particle and random sign flips of each subject's values for the cluster-size threshold. Positive and negative clusters are formed separately, and the run requires enough subjects for 2^(n-1) distinct flips to reach the cluster p-value. The two-sample path is unchanged.
The new Python test checks the t-values against scipy, the signed clustering, and that a loss patch and a gain patch are found while noise alone finds nothing. Studio's UI was built but not exercised.