Usage
initFlexmix(..., k, init = list(), control = list(), nrep = 3L,
verbose = TRUE, drop = TRUE, unique = FALSE)
initMethod(name = c("tol.em", "cem.em", "sem.em"),
step1 = list(tolerance = 10^-2),
step2 = list(), control = list(), nrep = 3L)stepFlexmix(..., k=NULL, nrep=3, verbose=TRUE, drop=TRUE,
unique=FALSE, multicore = TRUE)
## S3 method for class 'stepFlexmix,missing':
plot(x, y, what=c("AIC", "BIC", "ICL"),
xlab=NULL, ylab=NULL, legend="topright", ...)
## S3 method for class 'stepFlexmix':
getModel(object, which="BIC")
## S3 method for class 'stepFlexmix':
unique(x, incomparables = FALSE, ...)
Arguments
k
A vector of integers passed in turn to the k
argument
of flexmix
. init
An object of class "initMethod"
or a named list
where initMethod
is called with it as arguments in addition
to the control
argument.
name
A character string indication which initialization
strategy should be employed: short runs of EM followed by a long
("tol.em"
), short runs of CEM followed by a long EM run
("cem.em"
), short runs of SEM followed by a l
step1
A named list which combined with the control
argument is coercable to a "FLXcontrol"
object. This control
setting is used for the short runs.
step2
A named list which combined with the control
argument is coercable to a "FLXcontrol"
object. This control
setting is used for the long run.
control
A named list which combined with the step1
or
the step2
argument is coercable to a "FLXcontrol"
object.
nrep
For each value of k
run flexmix
nrep
times and keep only the solution with maximum
likelihood. If nrep
is set for the long run, it is ignored,
because the verbose
If TRUE
, show progress information during
computations.
drop
If TRUE
and k
is of length 1, then a single
flexmix object is returned instead of a "stepFlexmix"
object.
unique
If TRUE
, then unique()
is called on the
result, see below.
multicore
If TRUE
, use mclapply()
from package
parallel for parallel processing. If an object of class
"cluster"
, use parLapply()
from package
parallel. If FALSE
, no x, object
An object of class "stepFlexmix"
.
what
Character vector naming information criteria to
plot. Functions of the same name must exist, which take a
stepFlexmix
object as input and return a numeric vector like
AIC,stepFlexmix-method
(see examples below).
xlab,ylab
Graphical parameters.
legend
If not FALSE
and what
contains more
than 1 element, a legend is placed at the specified location, see
legend
for details. which
Number of model to get. If character, interpreted as
number of components or name of an information criterion.
incomparables
A vector of values that cannot be
compared. Currently, FALSE
is the only possible value,
meaning that all values can be compared.