On 3/12/13 6:35 PM, Marcus Brubaker wrote:
> Bob, are you sure that's correct?
My original post is admittedly confusing. So let me
try to clarify.
We need both the truncation points AND the parameters to be
constant (but not the variate).
So in
y ~ normal(mu,sigma) T[L,H];
you don't need the truncation if mu, sigma, L, and H
are all constants.
I used an example from the negative binomial, where
the variate is an int, and can't be a parameter:
if (!include_summand<propto,T_shape,T_inv_scale>::value)
return 0.0;
To make this work properly for truncation, the return should
be 1.0. For the normal, we need T_y, T_loc, T_scale in
the include_summand.
But I don't think that really makes sense for "propto" independently
for CDFs.
- Bob