Closed Xlcandy closed 2 years ago
Try using spmi.extent
to get the width of a single cluster.
I suggest using a list comprehension to get the widths of all clusters, like this:
extents = [c.extent for c in spmi.clusters]
or getting the total excursion set extent as:
total_extent = sum( [c.extent for c in spmi.clusters] )
However, please note that there is no straightforward parametric probability for total_extent
; its probabilistic meaning is somewhat elusive. Thus I do not recommend using total_extent
for reporting purposes.
Okay! I got it. Thank you very much, Todd! Have a nice day!
π
"***.clusters" command returns detailed information about the significant clusters including endpoints. Can I get the "width"(larger endpoint minus smaller endpoint) of the individual clusters in a simple way? And I would like to get the sum of all significant cluster widths in a single t-test result.