View source: R/simu_functions.R
calc_zinb_param | R 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.
calc_zinb_param(mu, theta, drop = 0, r_m = 1, r_v = 1)
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 |
μ' and θ' of the modified ZINB distribution
It is required that r_m / r_v < 1 + μ / θ.
calc_zinb_param(2,3,r_m=1.3) calc_zinb_param(2,3,r_v=1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.