View source: R/ct_plot_calendar.R
| ct_fit_distribution | R Documentation |
Fits a Poisson, negative binomial, or binomial distribution to a vector of counts and returns the parameter estimates together with the log-likelihood, AIC and BIC.
ct_fit_distribution(count, distribution)
count |
Numeric vector of non-negative counts. For
|
distribution |
One of |
A one-row tibble with the fitted parameter(s), their standard error(s), the log-likelihood, AIC, BIC and sample size.
ct_plot_calendar()
set.seed(1)
ct_fit_distribution(stats::rpois(100, 3), "poisson")
ct_fit_distribution(stats::rnbinom(100, size = 1, mu = 4), "nbinomial")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.