File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,27 @@ function clusterdepth(
2626 rng,
2727 data:: AbstractArray ;
2828 τ= 2.3 ,
29- stat_type= :onesample_ttest ,
30- perm_type= :sign ,
31- side_type= :abs ,
32- nperm= 5000 ,
33- pval_type= :troendle ,
34- (statfun!)= nothing ,
35- statfun= nothing ,
29+ stat_type = :onesample_ttest ,
30+ perm_type = :sign ,
31+ side_type = :abs ,
32+ nperm = 5000 ,
33+ pval_type = :troendle ,
34+ (statfun!) = nothing ,
35+ statfun = nothing ,
36+ permfun = nothing ,
3637)
3738 if stat_type == :onesample_ttest
38- statfun! = studentt!
39- statfun = studentt
39+ if isnothing (statfun!)
40+ statfun! = studentt!
41+ end
42+ if isnothing (statfun)
43+ statfun = studentt
44+ end
4045 end
4146 if perm_type == :sign
47+ if isnothing (permfun)
4248 permfun = sign_permute!
49+ end
4350 end
4451 if side_type == :abs
4552 sidefun = abs
You can’t perform that action at this time.
0 commit comments