Learn R Programming

MixAll (version 1.4.2)

kmmNames: Create a vector of Kernel mixture model (KMM) names.

Description

In a Kernel mixture model, sssumptions on the proportions and standard deviations give rise to 4 models:

  1. Proportions can be equal or free.

  2. Standard deviations are equal or free for all clusters.

check if a vector of kernel mixture model (KMM) name is correct.

check if a vector of kernel name is correct.

Usage

kmmNames(prop = "all", sdBetweenCluster = "all")

kmmValidModelNames(names)

kmmValidKernelNames(names)

Arguments

prop

A character string equal to "equal", "free" or "all". Default is "all".

sdBetweenCluster

A character string equal to "equal", "free" or "all". Default is "all".

names

a vector of character with the names to check

Value

A vector of character with the model names.

TRUE if the names in the vector names are valid, FALSE otherwise.

Details

The model names are summarized in the following array:

Model Name Proportions s. d. between clusters
kmm_p_sk equal Free
kmm_p_s equal Equal
kmm_pk_sk equal Free
kmm_pk_s equal Equal

Examples

Run this code
# NOT RUN {
kmmNames()
## same as c("kmm_p_sk")
kmmNames( prop = "equal", sdBetweenCluster= "free")

# }

Run the code above in your browser using DataLab