Initialization options with S3 classes

init.options(
  init.method = "hc",
  hc.options = list(modelName = "VVV", use = "SVD"),
  exp.init = list(mahala = TRUE),
  mix.method = "Gower kmeans",
  user.class = integer()
)

Arguments

init.method

Name of method used to set initial values. If init.method = 'user', must define 'user.class' with a classification vector.

hc.options

Model names and use when init.method is 'hc' following conventions of mclust::mclust.options()

exp.init

Turn on mahala initialization when expert network

mix.method

Initialization methods when data are mixed. Default method when data are Tweedie distributed.

user.class

Vector of classification vector set by user and required when init.method = 'user'

Value

list of initialization specifications

Examples

init.options()
#> $init.method
#> [1] "hc"
#> 
#> $hc.options
#> $hc.options$modelName
#> [1] "VVV"
#> 
#> $hc.options$use
#> [1] "SVD"
#> 
#> 
#> $exp.init
#> $exp.init$mahala
#> [1] TRUE
#> 
#> 
#> $mix.method
#> [1] "Gower kmeans"
#> 
#> $user.class
#> integer(0)
#> 
#> $defaults
#> [1] "init.method" "hcName"      "hcUse"       "mix.method" 
#> 
#> attr(,"class")
#> [1] "InitOptions"
init.options(init.method = "hc")
#> $init.method
#> [1] "hc"
#> 
#> $hc.options
#> $hc.options$modelName
#> [1] "VVV"
#> 
#> $hc.options$use
#> [1] "SVD"
#> 
#> 
#> $exp.init
#> $exp.init$mahala
#> [1] TRUE
#> 
#> 
#> $mix.method
#> [1] "Gower kmeans"
#> 
#> $user.class
#> integer(0)
#> 
#> $defaults
#> [1] "hcName"     "hcUse"      "mix.method"
#> 
#> attr(,"class")
#> [1] "InitOptions"
init.options(init.method = "mixed")
#> $init.method
#> [1] "mixed"
#> 
#> $hc.options
#> $hc.options$modelName
#> [1] "VVV"
#> 
#> $hc.options$use
#> [1] "SVD"
#> 
#> 
#> $exp.init
#> $exp.init$mahala
#> [1] TRUE
#> 
#> 
#> $mix.method
#> [1] "Gower kmeans"
#> 
#> $user.class
#> integer(0)
#> 
#> $defaults
#> [1] "hcName"     "hcUse"      "mix.method"
#> 
#> attr(,"class")
#> [1] "InitOptions"
init.options(init.method = "user", user.class = c(1, 1, 2, 1, 3, 3, 1, 2))
#> $init.method
#> [1] "user"
#> 
#> $hc.options
#> $hc.options$modelName
#> [1] "VVV"
#> 
#> $hc.options$use
#> [1] "SVD"
#> 
#> 
#> $exp.init
#> $exp.init$mahala
#> [1] TRUE
#> 
#> 
#> $mix.method
#> [1] "Gower kmeans"
#> 
#> $user.class
#> [1] 1 1 2 1 3 3 1 2
#> 
#> $defaults
#> [1] "hcName"     "hcUse"      "mix.method"
#> 
#> attr(,"class")
#> [1] "InitOptions"