QLMDe_stepK {QuantileGH} | R Documentation |
Forward Selection of the Number of Components
Description
To compare -parsimonious models of Tukey
-&-
mixtures with different number of components
(up to a user-specified
)
and select the optimal number of components.
Usage
QLMDe_stepK(
x,
distname = c("GH", "norm"),
data.name = deparse1(substitute(x)),
Kmax = 3L,
test = c("BIC", "AIC"),
direction = c("forward", "backward"),
...
)
Arguments
x |
|
distname , data.name |
character scalars, see parameters of the same names in function QLMDe |
Kmax |
integer scalar |
test |
character scalar, criterion to be used, either Akaike's information criterion AIC, or Bayesian information criterion BIC (default). |
direction |
character scalar, direct of selection in function step_fmx,
either |
... |
additional parameters |
Details
Function QLMDe_stepK compares the -parsimonious models with different number of components
,
and selects the optimal number of components using BIC (default) or AIC.
The forward selection starts with finding the -parsimonious model (via function step_fmx)
at
.
Let the current number of component be
.
We compare the
-parsimonious models of
and
component, respectively,
using BIC or AIC.
If
is preferred, then the forward selection is stopped, and
is considered the
optimal number of components.
If
is preferred, then
the forward selection is stopped if
,
otherwise update
with
and repeat the previous steps.
Value
Function QLMDe_stepK returns an object of S3 class 'stepK'
,
which is a list of selected models (in reversed order) with attribute(s)
'direction'
and
'test'
.
Examples
data(bmi, package = 'mixsmsn')
hist(x <- bmi[[1L]])
QLMDe_stepK(x, distname = 'GH', Kmax = 2L)