Closed johnnybonney closed 4 years ago
Ah, this is something I had forgotten to check.
I've now incorporated a check to make sure that the monotonicity constraints are declared using only TRUE
or FALSE
(so NULL
is not allowed), and that the shape constraints are declared using only numerical values.
The function breaks if shape constraint arguments are specified as
NULL
. Of course, it is easy to work around this by not specifying the argument at all, but my understanding is that it is pretty standard to allow for this kind of thing.