Learn R Programming

longitudinalData (version 2.4.7)

Constants: ~ Constants ~

Description

Constants define in the package ~

Usage

MAX_CLUSTERS


CRITERION_NAMES
DISTANCE_METHODS
CHOICE_STYLE

Arguments

Value

MAX_CLUSTERS = 26

CLUSTER_NAMES = paste("c",2:MAX_CLUSTERS,sep="")

CRITERION_NAMES <- c(

"Calinski.Harabatz","Kryszczuk.Calinski","Genolini.Calinski","Ray.Turi","Davies.Bouldin",

"BIC","BIC2","AIC","AICc","AICc2","postProbaGlobal","random"

)

DISTANCE_METHODS = c("manhattan", "euclidean", "minkowski", "maximum", "canberra", "binary")

CHOICE_STYLE = list(

typeTraj=c("l","l","n"),

colTraj=c("clusters","black","black"),

typeMean=c("b","b","b","b","l","l","n"),

colMean=c("clusters","black","clusters","black","clusters","black","black"),

pchMean=c("letters","letters","symbols","symbols","letters","letters","letters")

)

Examples

Run this code
### Maximum number of clusters that kml can deal with
MAX_CLUSTERS

### Names of the field that save clusters in object 'ClusterLongData'
cat(CLUSTER_NAMES,"\n")

### List of the available criterion
CRITERION_NAMES

### Distance available
DISTANCE_METHODS[2]

### Define the style use by choice
CHOICE_STYLE[['typeTraj']][2]

Run the code above in your browser using DataLab