calc_zinb_param: Given a ZINB(mu, theta, z), returns ZINB(mu', theta', z) such...

View source: R/simu_functions.R

calc_zinb_paramR Documentation

Given a ZINB(μ, θ, z), returns ZINB(μ', θ', z) such that the mean changes by a factor of r_m and the variance changes by a factor of v_m.

Description

Given a ZINB(μ, θ, z), returns ZINB(μ', θ', z) such that the mean changes by a factor of r_m and the variance changes by a factor of v_m.

Usage

calc_zinb_param(mu, theta, drop = 0, r_m = 1, r_v = 1)

Arguments

mu

parameter μ of ZINB distribution.

theta

parameter θ of ZINB distribution.

drop

dropout rate z of ZINB distribution.

r_m

targeted fold change of mean

r_v

targeted fold change of variance

Value

μ' and θ' of the modified ZINB distribution

Note

It is required that r_m / r_v < 1 + μ / θ.

Examples

calc_zinb_param(2,3,r_m=1.3)
calc_zinb_param(2,3,r_v=1.5)


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