prepareInitialParameters {batchmix}R Documentation

Prepare initial values

Description

Prepares user given values for input into the C++ function.

Usage

prepareInitialParameters(
  initial_class_means,
  initial_class_covariance,
  initial_batch_shift,
  initial_batch_scale,
  initial_class_df,
  P,
  K,
  B,
  type
)

Arguments

initial_class_means

A $P x K$ matrix of initial values for the class means. Defaults to draws from the prior distribution.

initial_class_covariance

A $P x P x K$ array of initial values for the class covariance matrices. Defaults to draws from the prior distribution.

initial_batch_shift

A $P x B$ matrix of initial values for the batch shift effect Defaults to draws from the prior distribution.

initial_batch_scale

A $P x B$ matrix of initial values for the batch scales Defaults to draws from the prior distribution.

initial_class_df

A $K$ vector of initial values for the class degrees of freedom. Defaults to draws from the prior distribution.

P

Integer. The number of measurements for each sample in the dataset being modelled.

K

The number of classes/clusters being modelled.

B

The number of batches being modelled.

type

The type of mixture model used; one of "MVN" or "MVT".

Value

A named list containing the different parameters.


[Package batchmix version 2.2.0 Index]