initNBParam: Get the mu (log-level mean) and r (dispersion) in Negative...

Description Usage Arguments Value

View source: R/initParams.R

Description

NOTE: From observation, mean can be estimate well, but if it's below 1, then r tends to be estimated too small.

Usage

1
initNBParam(y, s, default_r)

Arguments

y

numeric vector, should be not all zeros.

s

numeric vector, normalizing constant, should no zeros.

default_r

numeric scalar, when variance larger than m, it will be used.

Value

list of two-named scalar, mu and r


beyondpie/mssc documentation built on Jan. 8, 2022, 1:30 p.m.