This function extracts the mixture parameters as a tibble. The tibble contains one row per component, a column for the mean of the mixture component and a column for its overdispersion. All the Binomial components have a fixed value of 0 for overdispersion..
Examples
# The same dataset used in the package vignette
data = data.frame(successes = c(rbinom(30, 100, .4), rbinom(70, 100, .7)), trials = 100)
# BMix fit with default parameters
x = bmixfit(data)
#>
#> ── BMix fit ────────────────────────────────────────────────────────────────────
#>
#> ℹ Binomials k_B = 1 and 2, Beta-Binomials k_BB = 0; 4 fits to run.
#>
#> ℹ Bmix best fit completed in 0 mins
#>
#> ── [ BMix ] My BMix model n = 100 with k = 2 component(s) (2 + 0) ──────────────
#> • Clusters: π = 70% [Bin 1] and 30% [Bin 2], with π > 0.
#> • Binomial Bin 1 with mean = 0.693859469498539.
#> • Binomial Bin 2 with mean = 0.394352128992424.
#> ℹ Score (model selection): ICL = 726.62.
Parameters(x)
#> # A tibble: 2 × 3
#> cluster mean overdispersion
#> <chr> <dbl> <dbl>
#> 1 Bin 1 0.694 0
#> 2 Bin 2 0.394 0
