Stop right there and rethink! The normalization factor depends on the parameter that you are maximizing over.
-pd > On 21 Dec 2017, at 11:29 , Lorenzo Isella <[email protected]> wrote: > > In the code, dbeta1 is the density of the beta distribution for > shape1=shape2=shape. > In the code, dbeta2 is the same quantity written explicitly, without the > normalization factor (which should not matter at all if we talk about > maximizing a quantity). > -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: [email protected] Priv: [email protected] ______________________________________________ [email protected] 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.

