Skip to content

Commit

Permalink
GH #142; median/mean switched for tidyMCMC
Browse files Browse the repository at this point in the history
  • Loading branch information
bbolker committed Aug 4, 2023
1 parent b9483f5 commit 3ba939b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mcmc_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ tidyMCMC <- function(x,
ss <- ss[, pars]
}

m <- if (robust) colMeans(ss) else apply(ss, 2, median)
m <- if (robust) apply(ss, 2, median) else colMeans(ss)

stdfun <- if (robust) stats::mad else stats::sd
ret <- dplyr::tibble(
Expand Down

0 comments on commit 3ba939b

Please sign in to comment.