dMPG: computes the density frunction for the Modfified Ploya Gamma...

Description Usage Arguments Value Examples

View source: R/rMPG.r

Description

computes the density frunction for the Modfified Ploya Gamma (MPG) distribution.

Usage

1
dMPG(x, alpha, nu, iflog = FALSE, Num_of_Terms = 200)

Arguments

x:

A positive real number or a vector of real numbers. The value at which the density to be calculated.

alpha:

A positive real number.

nu:

A positive real number, order of the MPG distribution.

Num_of_Terms:

Integer greater than 50. Number of Terms added in the series represantion of the density.

Value

Density of the MPG(alpha, nu) evaluated at x

Examples

1
2
3
4
library(Bessel)
dMPG(.05, alpha=5, nu=0)
dMPG(c(.01, .05,.1) , alpha=5, nu=0)
plot(function(x){dMPG(x, alpha=5, nu=0, iflog = FALSE)}, xlim=c(.005, .2))

subhadippal2019/BVNF documentation built on March 12, 2021, 10:05 p.m.