Repository navigation
Fix con_ste and p - #92
Open
libo-zhang64 wants to merge 1 commit into
Open
libo-zhang64 wants to merge 1 commit into
libo-zhang64 wants to merge 1 commit into
Conversation
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.
The main focus is on fixing the computation and reporting of contrast standard errors (
con_ste) and p-values (p) in cases involving autoregressive (AR) and robust regression, as well as ensuring undefined statistical tests are handled consistently. Additional improvements include more robust contrast validation, improved handling of rank-deficient models, and clearer reporting of results.Key changes:
Contrast handling and validation:
Xis rank-deficient, warning users when contrasts are not estimable.Statistical computation corrections:
con_ste) for AR and robust regression modes, ensuring they are computed and reported correctly. [1] [2] [3] [4] [5]Undefined test handling:
sanitize_t_phelper to ensure undefined t- and p-values (e.g., from constant voxels or perfect fits) are set to t=0, p=1, so they cannot be mistakenly interpreted as significant. [1] [2]Code cleanup and clarity:
These changes collectively improve the reliability, interpretability, and user feedback of regression analyses in the toolbox.