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

Shifted lognormal uniform #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

martinmodrak
Copy link

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.

@sims1253
Copy link
Owner

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

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

Copy link
Author

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

@sims1253
Copy link
Owner

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.

@martinmodrak
Copy link
Author

Updated the link to source, so hopefully, this is good to go!

@sims1253
Copy link
Owner

Looks good. Gonna have to update the actions for them to pass, but I can do that :)

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

Successfully merging this pull request may close these issues.

2 participants