Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robust argument in tidyMCMC #142

Open
PasDrGoet opened this issue Aug 4, 2023 · 1 comment
Open

robust argument in tidyMCMC #142

PasDrGoet opened this issue Aug 4, 2023 · 1 comment

Comments

@PasDrGoet
Copy link

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
Copy link
Owner

bbolker commented Aug 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants