zinb.regression.parseModel: Parse ZINB regression model

View source: R/optimzinb.R

zinb.regression.parseModelR Documentation

Parse ZINB regression model

Description

Given the parameters of a ZINB regression model, this function parses the model and computes the vector of log(mu), logit(pi), and the dimensions of the different components of the vector of parameters.

Usage

zinb.regression.parseModel(alpha, A.mu, A.pi)

Arguments

alpha

the vectors of parameters c(a.mu, a.pi) concatenated

A.mu

matrix of the model (default=empty)

A.pi

matrix of the model (default=empty)

Value

A list with slots logMu, logitPi, dim.alpha (a vector of length 2 with the dimension of each of the vectors a.mu, a.pi in alpha), and start.alpha (a vector of length 2 with the starting indices of the 2 vectors in alpha)


drisso/learn2count documentation built on March 25, 2023, 4:21 p.m.