Skip to content

Add a one-sample option to network analysis - #2739

Open
akenmorris wants to merge 1 commit into
masterfrom
amorris/network-one-sample
Open

akenmorris wants to merge 1 commit into
masterfrom
amorris/network-one-sample

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

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.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network analysis: one-sample test

1 participant