[R] how to avoid this : underflow occurred in 'lgammacor'

casperyc casperyc at hotmail.co.uk
Wed Apr 4 21:22:39 CEST 2012


Hi all,

I am constructing a likelihood involving the following

lbeta(j + a, k - j + b)

where j,k are constants and a and b are parameters (>0).

While doing the optimization, the error sometimes occurs,

In lbeta(j + a, k - j + b) : underflow occurred in 'lgammacor'

Is there a way to avoid it?

I am not sure what's being used in ' 'lgammacor''.

Thanks!

-----
###################################################
PhD candidate in Statistics
School of Mathematics, Statistics and Actuarial Science, University of Kent
###################################################

--
View this message in context: http://r.789695.n4.nabble.com/how-to-avoid-this-underflow-occurred-in-lgammacor-tp4532940p4532940.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list