setupLnbDict: setupLnbDict

Description Usage Arguments Details Value Author(s) See Also

Description

Set up LnbDict instance

Usage

1
setupLnbDict(count.max, mean.bias.vec, r, alpha, beta, count.res, p.res)

Arguments

count.max

dgCMatrix, Max values of count.mat in link{Nbcd}

mean.bias.vec

Numeric vecotor, Relative mean bias for each observation

r

Numeric, Size parameters of negative binomial distribution.

alpha

Numeric, Parameter fo beta distribution, which is prior for p of negative binomial distribution

beta

Numeric, Parameter fo beta distribution, which is prior for p of negative binomial distribution

count.res

Integer, Approximation resolution of count

p.res

Integer, Approximation resolution of parameter p

Details

This function is responsible for generating instance of LnbDict. This involves calculate negative binomial probability for grid points of count and p. Futhermore, this calculate index conversion for count and p (see details in LnbDict. This also calculate log prior values for p.vec.

Value

lnb.dict Instance of class LnbDict

Author(s)

Yasuhiro Kojima

See Also

[LnbDict]


kojikoji/nbcf documentation built on June 16, 2019, 6:08 p.m.