-
Notifications
You must be signed in to change notification settings - Fork 2
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
Speed up dev_beta_binom()
by adding a scalar version of the log-likelihood function, a vectorized optimization routine, and memoization.
#69
Conversation
nehill197
commented
Aug 12, 2024
- Added a scalar case to the log-likelihood function to improve speed for scalar inputs.
- Add memoization (if package is installed) and data has > 800 rows to gain speed from repeated function calls.
- Use a vectorized optimization function to improve speed of optimization required for deviance calculation.
…on for the beta-binomial distribution
…n scalar log likelihood calculation
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.
I would move the optimize_R code to a .R file in /scripts so that not cluttering up the /R folder
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.
Awesome
Going to wait to merge until current CRAN submission is complete. |
Merge remote-tracking branch 'origin/main' into f-optimize-betabin # Conflicts: # DESCRIPTION