select_model: Select the most appropriate model

Description Usage Arguments Value Examples

View source: R/select_model.R

Description

Select the most appropriate model

Usage

1
select_model(fitlist)

Arguments

fitlist

a list of fits, as created by fit_counts.

Value

a data.frame with two columns: count representing the name of the count and chosen model with the model with the lowest BIC.

Examples

1
2
3
4
5
6
7
set.seed(1)
df <- data.frame(poisson1 = rpois(50, 2), 
                 poisson2 = rpois(50, 5),
                 zip1 = rZIP(50, 2, 0.7),
                 zip2 = rZIP(50, 5, 0.7))
fitlist_separate <- fit_counts(df, model = c("pois", "zip")) 
select_model(fitlist_separate)

countfitteR documentation built on Oct. 23, 2020, 5:11 p.m.