varBP: Get variance of a beta-Poisson model

Description Usage Arguments Value Examples

View source: R/varBP.R

Description

Get variance of a beta-Poisson model

Usage

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

Arguments

alp

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

bet

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

lam1

A non-negative value, the parameter for scaling

lam2

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

prob0

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

Value

The variance of a beta-Poisson model

Examples

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

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