I have a question regarding the function tweedie.dev(y, mu, power) from the tweedie package. When I run this function on some data I have generated I get Inf where y = 0 (I use power = 1.5). Does this function compute the deviance as per:


If so, I do not see how it would ever give Inf, since there is no risk of dividing by zero as long as power is not equal to 1 or 2. Does anyone have any insights on this function, and why I get this behaviour?

Thanks in advance!

  • $\begingroup$ Could you please tell us what this function is intended to compute? $\endgroup$
    – whuber
    Jul 6, 2020 at 13:47
  • 1
    $\begingroup$ Please see the wikipedia link i provided. $\endgroup$
    – Unknown
    Jul 6, 2020 at 21:25


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.