Closed drbenvincent closed 7 years ago
Unexpected side-effect of this was to break model.get_inferred_present_subjective_values()
. This was picked up by the unit tests :) But I was slack and didn't run them :(
It's because VA and VB are now in a private user-defined function, they aren't able to be monitored.
Solutions:
VA
and VB
in the generated quantities blockI've reverted back so that now VA
and VB
are available to monitor and get the values of.
This was a big waste of time. I should have run the tests.
We already have some user-defined functions
psychometric_function
anddf_hyperbolic1
, but we can also extract a newdiscounting
function out of the transformed parameters block.I first tried to add a custom sampling function (e.g.
R ~ discounting_hyperbolic(...)
but didn't have much luck, even when following the advice of this paper:So this might act as a stepping stone towards that