Skip to content

Commit

Permalink
Fix format?
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Sep 22, 2021
1 parent f125ecb commit 8126bc7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/discretediag.jl
Expand Up @@ -302,16 +302,14 @@ function diag_all(
stat = t * sum(chi_stat)
df0 = (m - 1) * (d - 1)
if m > 1 && !isnan(stat)
pval =
Distributions.ccdf(Distributions.Chisq(df0), stat)
pval = Distributions.ccdf(Distributions.Chisq(df0), stat)
end
elseif method == :weiss
stat = (t / ca) * sum(chi_stat)
df0 = (m - 1) * (d - 1)
pval = NaN
if m > 1 && !isnan(stat)
pval =
Distributions.ccdf(Distributions.Chisq(df0), stat)
pval = Distributions.ccdf(Distributions.Chisq(df0), stat)
end
elseif method == :DARBOOT
stat = t * sum(chi_stat)
Expand Down

0 comments on commit 8126bc7

Please sign in to comment.