Hi all,
The following model gets consistently rejected on initialisation:
https://gist.github.com/danstowell/5883463
"""
Informational Message: The parameter state is about to be Metropolis
rejected due to the following underlying, non-fatal (really) issue
(and please ignore that what comes next might say 'error'): Error in
function stan::prob::normal_log(N4stan5agrad3varE): Random variable[0]
is nan:0, but must not be nan!
If the problem persists across multiple draws, you might have a
problem with an initial state or a gradient somewhere.
If the problem does not persist, the resulting samples will still be
drawn from the posterior.
[...]
Initialization failed after 100 attempts. Try specifying initial
values, reducing ranges of constrained values, or reparameterizing the
model.
"""
I can't see any constraint issues. Specifying initial values doesn't
help, it leads to:
"""
Exception: Error in function
stan::prob::normal_log(N4stan5agrad3varE): Random variable[0] is
nan:0, but must not be nan!
Diagnostic information:
Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type:
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::domain_error>
>
std::exception::what: Error in function
stan::prob::normal_log(N4stan5agrad3varE): Random variable[0] is
nan:0, but must not be nan!
"""
Any clues apparent?
Thanks for any thoughts -
Dan
--
http://www.mcld.co.uk