model_bic: model_bic

View source: R/model_bic.R

model_bicR Documentation

model_bic

Description

This function is used to calculate the Bayesian information criterion of the models fitted in fit_models.

Usage

model_bic(fit_list)

Arguments

fit_list

A list of models fitted from fit_models

Value

A dataframe containing the BIC values for each distribution type (P, NB, ZIP, ZINB).

Examples


data(scData)

# apply the model_bic function to calculate the BIC values on the models
# obtained after running fit_models function.

library(BiocParallel)
scData_models <- fit_models(counts=scData$counts, cexpr=scData$covariates, lib.size=scData$lib_size,
BPPARAM=bpparam())

scData_bicvals <- model_bic(scData_models)

Malindrie/scShapes documentation built on Nov. 21, 2022, 8:58 a.m.