Skip to content

Commit

Permalink
Fix footnote issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyDoorn committed May 27, 2024
1 parent 84dc9eb commit 7427dee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/regressionlogistic.R
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@ RegressionLogisticInternal <- function(jaspResults, dataset = NULL, options, ...
}
}

predVar <- as.character(glmObj[[1]][["terms"]])[2]
predLevel <- levels(glmObj[[1]][["data"]][[predVar]])[2]
predVar <- options[["dependent"]]
predLevel <- levels(dataset[[predVar]])[2]

jaspResults[["estimatesTable"]]$addFootnote(gettextf("%1$s level '%2$s' coded as class 1.", .unv(predVar), predLevel))
jaspResults[["estimatesTable"]]$addFootnote(gettextf("%1$s level '%2$s' coded as class 1.", predVar, predLevel))
}

.reglogisticEstimatesBootstrapFill <- function(jaspResults, dataset, options){
Expand Down

0 comments on commit 7427dee

Please sign in to comment.