-
Notifications
You must be signed in to change notification settings - Fork 3
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
Shifted lognormal uniform #20
base: master
Are you sure you want to change the base?
Shifted lognormal uniform #20
Conversation
I'm super sorry, must have missed the notification. I'll look at this tomorrow. |
R/misc.R
Outdated
#' | ||
#' A more numerically stable equivalent to \code{log(sum(exp(x)))} | ||
#' | ||
#' @source http://tr.im/hH5A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source link seems to be dead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will replace with a link to Wikipedia
Besides the dead link I think this looks splendit :) Unless there is a reference implementation somewhere we could test against, this looks good to me. |
Updated the link to source, so hopefully, this is good to go! |
Looks good. Gonna have to update the actions for them to pass, but I can do that :) |
Hi,
would you like to add a uniform + shifted lognormal mixture distribution? This is useful for reaction times (and cannot be directly built with brms via
mixture
because the uniform distribution is a zero-parameter distribution and brms doesn't like that).Some background at https://www.martinmodrak.cz/2021/04/01/using-brms-to-model-reaction-times-contaminated-with-errors/
Happy to answer questions / suggestions for the code.