QLMDe_stepK {QuantileGH}R Documentation

Forward Selection of the Number of Components KK

Description

To compare ghgh-parsimonious models of Tukey gg-&-hh mixtures with different number of components KK (up to a user-specified KmaxK_\text{max}) 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

numeric vector, observations

distname, data.name

character scalars, see parameters of the same names in function QLMDe

Kmax

integer scalar KmaxK_\text{max}, maximum number of components to be considered. Default 3L

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 'forward' (default) or 'backward'

...

additional parameters

Details

Function QLMDe_stepK compares the ghgh-parsimonious models with different number of components KK, and selects the optimal number of components using BIC (default) or AIC.

The forward selection starts with finding the ghgh-parsimonious model (via function step_fmx) at K=1K = 1. Let the current number of component be KcK^c. We compare the ghgh-parsimonious models of Kc+1K^c+1 and KcK^c component, respectively, using BIC or AIC. If KcK^c is preferred, then the forward selection is stopped, and KcK^c is considered the optimal number of components. If Kc+1K^c+1 is preferred, then the forward selection is stopped if Kc+1=KmaxK^c+1=K_{max}, otherwise update KcK^c with Kc+1K_c+1 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)


[Package QuantileGH version 0.1.7 Index]