-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
feature/issue-2616 Expose beta_proportion lccdf, lcdf, lpdf, rng #2620
feature/issue-2616 Expose beta_proportion lccdf, lcdf, lpdf, rng #2620
Conversation
…re/issue-2616-expose-beta-proportion-functions
…re/issue-2616-expose-beta-proportion-functions
@bob-carpenter When you get back into the groove of things after StanCon, would you help me parse the following jenkins error (this is the error from one push ago):
Is the best solution at this point to just write, in stan-dev/math, I'm having a hard time tracking down where/why this error message comes about. Where is |
It's coming from generated code. And yes, for now, those functions need to be implemented to delegate back to the real functions. We need to sort this out so we don't need to keep adding _log versions of functions.
I created an issue:
#2623
|
FYI This PR should have a work in progress label on it until either stan-dev/math#1018 or #2623 is merged. Thanks. |
…re/issue-2616-expose-beta-proportion-functions
Ready for review. Thanks. |
Looks like there's a merge conflict. Pull down the latest develop and merge it into your branch |
Hey @bbbales2 I fixed the merge conflict and pushed. Looks like 15 of the 16 builds on Travis passed, but the 15th build had some apt-get command fail. Would you restart Travis, please? Thanks. |
This looks good to me. What do you mean by "These tests use the pipe syntax, whereas no other distribution's tests seem to do this." Do you just mean that they use |
I edited that comment out, as it no longer pertains to this PR. To answer your question, no. That comment addressed my previous attempt to test |
I'm done working on this one; no more WIP. @bob-carpenter when you get a minute, let me know if there is anything else I need to address on this. Thanks. |
Submission Checklist
unit tests:./runTests.py src/test/unit
./runTests.py -j3 src/test/unit/lang/parser/distribution_functions_test.cpp
make cpplint
Summary
Expose
beta_proportion_lccdf
,beta_proportion_lcdf
,beta_proportion_lpdf
, andbeta_proportion_rng
.Tests written in
src/test/test-models/good/function-signatures/distributions/rngs.stan
and
stan/src/test/test-models/good/function-signatures/distributions/univariate/continuous/beta_proportion/
Reviewer, please notice: I didn't find any Stan programs that test, for instance,
y ~ beta(a, b)
and thus didn't write a Stan program withbeta_proportion
in a Stan model block. Instead Stan programs forbeta_proportion_lccdf
,beta_proportion_lcdf
, andbeta_proportion_lpdf
are within the directorystan/src/test/test-models/good/function-signatures/distributions/univariate/continuous/beta_proportion/
.These tests use the pipe syntax, whereas no other distribution's tests seem to do this.Intended Effect
Give users access to the functions
beta_proportion_lccdf
,beta_proportion_lcdf
,beta_proportion_lpdf
, andbeta_proportion_rng
.How to Verify
src/test/unit/lang/parser/distribution_functions_test.cpp
contains the commands to run the tests.Side Effects
None intended.
Documentation
In
src/docs/functions/distributions.tex
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): California State University, Chico
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: