[R] problem in metro_hasting function‏

Bert Gunter bgunter.4567 at gmail.com
Thu Dec 10 20:23:56 CET 2015

Heh, heh ...

Uniform distributions are not necessarily "non-informative" priors
(itself, a non-definition). See, e.g.
http://www.stats.org.uk/priors/noninformative/YangBerger1998.pdf   .
For a basic argument, see:

Further discussion is off-topic here (it's a statistical, not an R,
question). I suggest you consult a local statistician for details.

And your question itself is noninformative: how can one tell without
knowing what you are trying to optimize, your data, your starting
values, etc. (unless I have missed something obvious)?

Finally, if this is homework, post elsewhere: this list has a no
homework policy.


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Thu, Dec 10, 2015 at 9:26 AM, hms Dreams <cute_loomaa at hotmail.com> wrote:
> Hello,
> I estimated three paramters using non informative prior(all paramters following uniform distribution)
> the output is:
> Error in optim(pars, li_func, control = list(fnscale = -1), hessian = TRUE,  :
>   non-finite finite-difference value [1]
> How can I solve it using uniform distribution for all paramters??
> (the same code is working when I use informative prior When I sugessted other distriutions like gamma and exp.)
> Thank you
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list