initNBParamWithCondBatch: Fit mu, mucond, muind for Negative Binomial with scaling. No...

Description Usage Arguments Value

View source: R/initParams.R

Description

Fit mu, mucond, muind for Negative Binomial with scaling. No more Stan script based. NOTE previous name: fit_mgsnb

Usage

1
initNBParamWithCondBatch(y, s, cond, ind, default_mu = 0, default_r = 20)

Arguments

y

numeric vector, should be not all zeros.

s

numeric vector, normalizing constant, should no zeros.

cond

vector of integer, start from 1

ind

vector of integer, start from 1

default_mu

double, default is 0.0.

default_r

double, default is 20.

Value

list of four-named element, mu, r, mucond, muind mu and r are scalars. mucond is a vector length of number of conditions, usually 2. muind is a vector length of number of individuals.


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