meanBP: Get mean of a beta-Poisson model

Description Usage Arguments Value Examples

View source: R/meanBP.R

Description

Get mean of a beta-Poisson model

Usage

1
meanBP(alp, bet, lam1 = 1, lam2 = 1, prob0 = 0)

Arguments

alp

A non-negative value, the pareter of Beta function (alpha)

bet

A non-negative value, the pareter of Beta function (beta)

lam1

A non-negative value, the pareter for scaling

lam2

A non-negative value, the pareter for smoothing, used for BP4 or BP5

prob0

A non-negative value in [0;1), the pareter for the portion of fixed density of zero in the distribution, used for BP5

Value

The mean of the beta-Poisson model

Examples

1
meanBP(alp=0.6,bet=1.5,lam1=20,lam2=0.05)

nghiavtr/BPSC documentation built on May 23, 2019, 4:42 p.m.