calc_multimod_param: For a given mixture 0.5 ZINB(mu(1-t), theta, z) + 0.5...

View source: R/simu_functions.R

calc_multimod_paramR Documentation

For a given mixture 0.5 ZINB(μ(1-t), θ, z) + 0.5 ZINB(μ(1+t), θ, z), return ZINB(μ, θ', z) such that both mean and variance match.

Description

For a given mixture 0.5 ZINB(μ(1-t), θ, z) + 0.5 ZINB(μ(1+t), θ, z), return ZINB(μ, θ', z) such that both mean and variance match.

Usage

calc_multimod_param(size, t = 0.5)

Arguments

size

parameter θ of the ZINB model.

t

Parameter t (between 0 and 1).

Value

Parameter θ' of the output ZINB model.


mqzhanglab/BSDE documentation built on March 20, 2022, 5:17 a.m.