R/dgp.R

Defines functions dgp

Documented in dgp

dgp <- function(y, theta, lambda, logged = TRUE) {

  den <-  log( theta ) + (y - 1) * log( theta + lambda * y ) - theta -
        y * lambda - lgamma(y + 1)
  if ( !logged )  den <- exp(den)
  den

}

Try the gp package in your browser

Any scripts or data that you put into this service are public.

gp documentation built on Oct. 23, 2023, 5:09 p.m.