bbolker / broom.mixed

tidy methods for mixed models in R
227 stars 23 forks source link

robust argument in tidyMCMC #142

Open PasDrGoet opened 11 months ago

PasDrGoet commented 11 months ago

Hello,

In tidyMCMC function, help says :

robust : use mean and standard deviation (if FALSE) or median and mean absolute deviation (if TRUE) to compute point estimates and uncertainty?

While function's code does the opposite :

m <- if (robust) colMeans(ss) else apply(ss, 2, median) stdfun <- if (robust) stats::mad else stats::sd_

Thank you

bbolker commented 11 months ago

oops! (it's just m that's backward, stdfun() is OK - right?)