Skip to content

Commit

Permalink
Hotfix p-value chi-square Logistic Regression
Browse files Browse the repository at this point in the history
@JohnnyDoorn found this critical bug playing around with
  • Loading branch information
Erik-Jan van Kesteren committed Oct 12, 2017
1 parent f0f5363 commit 2f1909f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JASP-Engine/JASP/R/commonglm.R
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@
if (chisq == 0) {
p <- NULL
} else {
p <- dchisq(chisq, df)
p <- 1-pchisq(chisq, df)
}
return(list(stat = chisq, df = df, pval = p))
}
Expand Down

0 comments on commit 2f1909f

Please sign in to comment.