Skip to content

Commit

Permalink
Correct error introduced when changing to inherits()
Browse files Browse the repository at this point in the history
Sign was reversed
  • Loading branch information
jacob-long committed Jan 8, 2024
1 parent 8320559 commit fb7f96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/simple_slopes.R
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ sim_slopes <- function(model, pred, modx, mod2 = NULL, modx.values = NULL,
# Need proper name for test statistic\
has_summ <- check_method(summ, model)
tcol <- try(colnames(summary(model)$coefficients)[3], silent = TRUE)
if (!is.null(tcol) & class(tcol) != "try-error") {
if (!is.null(tcol) && !inherits(tcol, "try-error")) {
tcol <- gsub("value", "val.", tcol)
if (tcol == "df") tcol <- "t val." # kludge for lmerModTest
which.cols <- c("Est.", "S.E.", unlist(make_ci_labs(ci.width)), tcol)
Expand Down

0 comments on commit fb7f96c

Please sign in to comment.