ebb_mixture_tidiers: Tidy a mixture of beta-binomials

Description Usage Arguments Value

Description

Tidy a mixture model fit by ebb_fit_mixture. tidy returns in the hyperparameters fit for each cluster, while glance returns the likelihood and other parameters for the full mixture.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'ebb_mixture'
tidy(x, ...)

## S3 method for class 'ebb_mixture'
augment(x, data, ...)

## S3 method for class 'ebb_mixture'
glance(x, ...)

Arguments

x

An ebb_mixture object, such as returned by ebb_fit_mixture.

...

Extra arguments, not used

data

The original data that the mixture model was fit on

Value

tidy returns a tbl_df with one row for each cluster, with columns

cluster

A character vector with cluster IDs

alpha

alpha shape parameter for this cluster

beta

beta shape parameter for this cluster

mean

alpha / beta, the mean of the beta distribution

size

Size of this cluster in the final assignments

probability

Prior probability of being in this cluster

glance returns a one-row data frame with columns:

iter

Number of iterations

logLik

Log-likelihood of the model, given the final "hard" assignments to each cluster

AIC

AIC of the model

BIC

BIC of the model


dgrtwo/ebbinom documentation built on May 15, 2019, 7:23 a.m.