Skip to content

Commit

Permalink
better error handling GLM log CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyDoorn committed Nov 19, 2024
1 parent 0147814 commit fab12f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/generalizedlinearmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ GeneralizedLinearModelInternal <- function(jaspResults, dataset = NULL, options,
if (options[["coefficientCi"]]) {
coefCiSummary <- try(confint(fullModel, level = options[["coefficientCiLevel"]]))
if (jaspBase::isTryError(coefCiSummary)) {
quitAnalysis("Confidence intervals not available for this model, try other predictors, families, or links.")
jaspResults[["estimatesTable"]]$setError("Confidence intervals not available for this model, try other predictors, families, or links.")
return()
}
if (length(rowNames) == 1) coefCiSummary <- matrix(coefCiSummary, ncol = 2)
} else {
Expand Down

0 comments on commit fab12f0

Please sign in to comment.