R/closed_gini.R

Defines functions gini.ln gini.d gini.sm gini.b2

gini.b2 <- function(theta) {
  p <- theta[1]
  q <- theta[2]
  2 * beta(2 * p, 2 * q - 1) / (p * beta(p, q)^2)
}

gini.sm <- function(theta) {
  a <- theta[1]
  q <- theta[2]
  1 - gamma(q) * gamma(2 * q - 1 / a) / (gamma(q - 1 / a) * gamma(2 * q))
}

gini.d <- function(theta) {
  a <- theta[1]
  p <- theta[2]
  gamma(p) * gamma(2 * p + 1 / a) / (gamma(p + 1 / a)*gamma(2 * p)) - 1
}

gini.ln <- function(theta) {
  s <- theta[1]
  2 * pnorm(s / 2^0.5) - 1
}

Try the GB2group package in your browser

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

GB2group documentation built on Jan. 26, 2021, 5:06 p.m.