bic.select.best.mode {netresponse} | R Documentation

## Select best mode with BIC

### Description

Select optimal number of mixture components by adding components until the increase in objective function is below threshold.

### Usage

    bic.select.best.mode(x, max.modes = 1, bic.threshold = 1, min.modes = 1)

### Arguments

`x` | dat vector (for univariate analysis) or a matrix (for multivariate analysis)
`max.modes` | Maximum number of modes to be checked for mixture model selection
`bic.threshold` | BIC threshold which needs to be exceeded before a new mode is added to the mixture.
`min.modes` | Optional. Minimum number of modes.

### Value

Fitted latent class model (parameters and free energy)

### Author(s)

Contact: Leo Lahti leo.lahti@iki.fi

### References

See citation('netresponse')

[Package netresponse version 1.50.0 Index]