-
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
Optimize res_beta_binom()
#63
Comments
I wrote a log-likelihood function in C++ to speed up the optimization routine (#66). First we added a scalar case to the log-likelihood function, which improves the speed for the scalar case required by As this was still slower than we would like, we next implemented a function to optimize a vector of all the probability values required for the deviance calculation at the same time. Lastly, we added memoization to the log-likelihood function for the Based on the code below, we chose n = 800 as the criterion to use the memoized version of the function.
|
This has been updated in the newest CRAN version! (0.8.0) |
Currently runs very slowly. Consider using C++ code.
The text was updated successfully, but these errors were encountered: