You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: +nla/+net/+result/NetworkTestResult.m
+43-42Lines changed: 43 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,16 @@
1
1
classdefNetworkTestResult < matlab.mixin.Copyable
2
-
%NETWORKTESTRESULT Network Test Results
3
-
% This is the super class that all network test results will be in
4
-
% When a result is created the three repositories (within_network_pair, full_connectome, no_permutations) are set
5
-
% to false. This makes it easier to do an if/else check on them.
6
-
% The three private methods create the structures and trimatrices to keep the data.
7
-
% Notation:
8
-
% Test Methods: The method used for ranking the statistics (within net pair, full connectome, no permutation)
9
-
% Statistics: The statistical results from a specific network test (chi-squared, t-tests)
10
-
%
11
-
% Output object:
12
-
% test_name: The name of the network test run (chi_squared, hypergeometric, etc)
13
-
% test_options: The options passed in. Method, plotting methods (formerly input_struct)
14
-
% within_network_pair: Results from within_network_pair tests
15
-
% full_connectome: Results from full_connectome tests
16
-
% no_permutations: Results from the no permutation test
17
-
% permutation_results: Results from all the permutations of the network tests. These are used in the ranking to create
18
-
% the results for the test methods
19
-
%
20
-
% Within each of the three results structures will be properties containing the tri-matrices. Each test is different,
21
-
% but all contain:
22
-
% p_value: TriMatrix with p-values
23
-
% single_sample_p_value: TriMatrix with the single sample p-value (if available)
2
+
% Network level test results
3
+
% Class to store all relevant results for a network level test. Each test will create an instance of this to store results
24
4
%
5
+
% :param test_name: The name of the network test run
6
+
% :param test_display_name: The name of the network test for display
7
+
% :param test_options: Options and inputs for tests to be run (also called input_struct)
8
+
% :param ranking_statistic: The statistic to be used in ranking to determine p-value
9
+
% :param within_network_pair: Results of the within network pair test. Single sample p-values (except :math:`\chi^2`\ and hypergeometric tests). "legacy_" results use the individual test p-values to rank and determine the final p-value. Multiple ranking strategies available
10
+
% :param full_connectome: Results of the full_connectome test. Same format as above.
11
+
% :param no_permutations: Results for the non-permuted test. Same format as above.
12
+
% :param permutation_results: Results of each permutation. Statistics and p-values. Note: The p-values are for each individual permutation test, not the overall p-value.
13
+
25
14
properties
26
15
test_name=""% Name of the network test run
27
16
test_display_name=""% Name of the network test for the front-end to display
Copy file name to clipboardExpand all lines: docs/source/network_level_tests.rst
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,5 +85,30 @@ To create a network-level test, a test class must be added to the codebase. Refe
85
85
86
86
Network Level results
87
87
---------------------------------------
88
+
.. mat:module:: .
88
89
90
+
All network level tests use ``nla.net.NetworkTestResult`` as the result object. This object uses the properties of the test
91
+
to name the results.
89
92
93
+
.. mat:autoclass:: NetworkTestResult
94
+
95
+
.. mat:automethod:: merge
96
+
97
+
.. mat:automethod:: concatenateResult
98
+
99
+
.. mat:automethod:: output
100
+
101
+
.. mat:automethod:: createResultsStorage
102
+
103
+
.. mat:automethod:: editableOptions
104
+
105
+
.. mat:automethod:: getPValueNames
106
+
107
+
The three test methods (no_permutations, full_connectome, within_network_pair) will each contain multiple TriMatrices (lower half of a square matrix) of results.::
108
+
109
+
:d: This is the results of a Cohen's D test (effects size) using the results of the test method
110
+
:uncorrected_<single/two>_sample_p_value: The uncorrected p-value found by ranking the observed (non-permuted) result versus the
111
+
test results of all the permutations.
112
+
:legacy_<single/two>_sample_p_value: The p-value found using the individual test p-values. Not verified for correctness.
113
+
:westfall_<single/two>_sample_p_value: The uncorrected p-value corrected for family-wise error rate using the method described by Westfall and Young :cite:p:`WestfallPH`
114
+
:winkler_<single/two>_sample_p_value: The uncorrected p-value corrected using the method described in :cite:p:`WinklerA`
0 commit comments