hidimstat.permutation_test_pval¶
- hidimstat.permutation_test_pval(weights, weights_distribution)¶
Compute p-value from permutation test
- Parameters:
- weightsndarray, shape (n_features,)
The weights of the original model.
- weights_distributionndarray, shape (n_permutations, n_features)
The distribution of the weights of the model obtained by shuffling
- Returns:
- pval_corrndarray, shape (n_features,)
p-value corrected for multiple testing, with numerically accurate values for positive effects (ie., for p-value close to zero).
- one_minus_pval_corrndarray, shape (n_features,)
One minus the corrected p-value, with numerically accurate values for negative effects (ie., for p-value close to one).