AM_VnkNegBin: Compute the value V(n,k), needed to caclulate the eppf of a...

Description Usage Arguments Value Examples

Description

There are no default values.

Usage

1
AM_VnkNegBin(n, r, p, gam)

Arguments

n

The sample size

r

The dispersion parameter r of Negative Binomial

p

The probability of failure parameter p of Negative Binomial

gam

The gamma parameter of the Dirichlet

Value

A vector of length n, reporting the values V(n,k) for k=1,...,n

Examples

1
2
3
4
5
6
7
8
n=1000
r=1000
p=0.5
gam=0.5
vnk= AM_VnkNegBin(n,r,p,gam);
stir= AM_compute_stirling_ricor_log(n, gam)
plot(exp(vnk+stir+(1:n)*log(gam)))
sum(exp(vnk+stir))

AntMAN documentation built on Oct. 30, 2019, 11:24 a.m.

Related to AM_VnkNegBin in AntMAN...