This function returns model parameters based on the best fit distribution as selected by distr_fit and models fitted by fit_models

model_param(fit.model, gof.res, model = NULL)

Arguments

fit.model

A list of models fitted by 'glm' from fit_models.

gof.res

A list of selected model distributions for genes select_model.

model

A specific model to fit (1:P, 2:NB, 3:ZIP, 4:ZINB, NULL:All)

Value

A list of model parameters estimated. Estimated model parameters include mean (for all 4 models), theta (over-dispersion parameter for NB & ZINB models), pi (zero-inflation parameter for ZIP & ZINB models).