Skip to content

Commit

Permalink
Fix emmeans bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Jun 19, 2024
1 parent 51d7d45 commit d2d54f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/tidy.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ tidy.sdmTMB <- function(x, effects = c("fixed", "ran_pars", "ran_vals"), model =
out$conf.low <- as.numeric(trans(out$estimate - crit * out$std.error))
out$conf.high <- as.numeric(trans(out$estimate + crit * out$std.error))
}
out$estimate <- trans(out$estimate)
# must wrap in as.numeric() otherwise I() leaves 'AsIs' class that affects emmeans package
out$estimate <- as.numeric(trans(out$estimate))
if (exponentiate) out$std.error <- NULL

out_re <- list()
Expand Down

0 comments on commit d2d54f6

Please sign in to comment.