decide: Make a decision based on the BIC value

Description Usage Arguments See Also Examples

View source: R/fitlist.R

Description

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

Usage

1
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

1
2
3
4
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)

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