Usage
disclapmix(x, centers = 1:5, use.parallel = FALSE, iterations = 25, eps = 0.001, calculate.logLs = FALSE, plots.prefix = NULL, verbose = 1)
Arguments
centers
A vector of center counts to fit the model for
use.parallel
Whether to do the computations in parallel (requires verbose = 0)
iterations
Maximum number of iterations in the EM-algorithm
eps
Convergence stop criteria in the EM algorithm which is compared to $\frac{\max { v_{new} - v_{old} }}{\max { v_{old} }}$, where v is a matrix of each observation's probability of belonging to a certain center
calculate.logLs
Whether to calculate the model's log likelihood at each iterations (might be slightly slower than not doing it)
plots.prefix
Where to put plots (NULL to avoid plotting)
verbose
from 0 to 3 (both including): 0 for silent, 3 for extra verbose