Error message

  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home3/gardeoi3/public_html/iamrandom/modules/book/book.module).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home3/gardeoi3/public_html/iamrandom/includes/common.inc).

Inverse Gamma distribution

I hate loading whole libraries for quick one line distributions.

dinvgamma=function(x,a,b){exp(a*log(b) - lgamma(a) - (a+1)*log(x) - b*1.0/x)}

rinvgamma=function(n,a,b){1/rgamma(n,a,b)}  #at one point the MCMCpack library has this function with different parameters for Windows and Unix 

                                                     

 

Tags: