decide {countfitteR}R Documentation

Make a decision based on the BIC value

Description

Select the most appropriate distribution for the count data in the html-friendly format.

Usage

decide(summary_fit, separate)

Arguments

summary_fit

a result of the summary_fitlist function.

separate

logical. If TRUE, each count is separately fitted to the model. If FALSE, all counts are fitted to the same models having the count name as the independent variable.

See Also

fit_counts

Examples

df <- data.frame(poisson = rpois(25, 0.3), binomial = rbinom(25, 1, 0.8))
fc <- fit_counts(df, model = "all") 
summ <- summary_fitlist(fc) 
decide(summ, separate = FALSE)

[Package countfitteR version 1.4 Index]