R/point_gamma.R

Defines functions point_gamma

Documented in point_gamma

#' @title \code{point_gamma} class
#' @description gammamix class that describes \deqn{g()  = pi0 delta() + (1-pi0) gamma(shape, scale)} 
#' @param pi0 A scalar specifying the weight on point mass at 0
#' @param shape A scalar specifying the shape of gamma
#' @param scale A scalar specifying the scale of gamma
#'
#' @export 
point_gamma <- function(pi0, shape, scale) {
  structure(data.frame(pi0 = pi0, shape = shape, scale = scale), class="point_gamma")
}
stephenslab/ebpm documentation built on Oct. 19, 2023, 1 p.m.