Nothing
#' LL function for the gamma gamma spend model
#' @export modeling.LL.gamma_spend
#' @param p p
#' @param q q
#' @param gamma gamma
#' @param y data
modeling.LL.gamma_spend <- function (p, q, gamma , y=data) {
#source http://www.brucehardie.com/notes/025/gamma_gamma.pdf
x <- as.numeric(y[,2])
m.x <- as.numeric(y[,1])
ll1 <- q * log(gamma) + (p * x - 1) *
log(m.x) + (p * x) * log(x) -
(p * x + q) * log(gamma + m.x * x)
ll2 <- (-lbeta(p * x, q) + ll1)
return (-sum(ll2))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.