Closed avehtari closed 2 years ago
Ah, that, unfortunately, is a docs "bug".
Prior to the last release, we found that there is a huge mess around normal_id_glm_lpdf
. There were signatures that were listed in these docs, but were not actually supported and there were supported signatures that were not listed in the docs.
See https://github.com/stan-dev/stanc3/issues/1080#issuecomment-1003730528
It seems that the mess was not cleaned up as we hoped. That should be a row_vector x
listed instead of matrix x I believe.
We can definitely add that signature though if it makes sense.
The actual supported signatures in stanc3 are:
normal_id_glm_lpdf(real, matrix, real, vector, real) => real
normal_id_glm_lpdf(real, matrix, real, vector, vector) => real
normal_id_glm_lpdf(real, matrix, vector, vector, real) => real
normal_id_glm_lpdf(real, matrix, vector, vector, vector) => real
normal_id_glm_lpdf(vector, row_vector, real, vector, real) => real
normal_id_glm_lpdf(vector, row_vector, real, vector, vector) => real
normal_id_glm_lpdf(vector, row_vector, vector, vector, real) => real
normal_id_glm_lpdf(vector, row_vector, vector, vector, vector) => real
normal_id_glm_lpdf(vector, matrix, real, vector, real) => real
normal_id_glm_lpdf(vector, matrix, vector, vector, real) => real
opened a docs issue https://github.com/stan-dev/docs/issues/503
Looking at the supported signatures, the signature I need makes completely sense. Just looking at the combinatorics in the list, it is missing logical combinations
normal_id_glm_lpdf(vector, matrix, real, vector, vector) => real
normal_id_glm_lpdf(vector, matrix, vector, vector, vector) => real
Is this simply a matter of adding them to stanc, or does additional C++ support need to be added first?
Only stanc, Math supports all combinations.
Current Behavior:
Using CmdStan 2.29.1 (via CmdStanR), getting stanc error
This signature makes sense and is listed in the documentation as available since 2.25 https://mc-stan.org/docs/2_29/functions-reference/normal-id-glm.html
Expected Behavior:
Expected to work with this signature
Model Code
Anything else:
Notebook with data https://avehtari.github.io/casestudies/Motorcycle/motorcycle_gpcourse.html
@SteveBronder has played with this model