neg_objective_function function

Negative objective function for EMMIXSSL

Negative objective function for EMMIXSSL

neg_objective_function( dat, zm, g, par, ncov = 2, type = c("ign", "full", "com") )

Arguments

  • dat: An n×pn\times p matrix where each row represents an individual observation
  • zm: An n-dimensional vector of group partition including the missing-label, denoted as NA.
  • g: Number of multivariate Gaussian groups.
  • par: An informative vector including mu, pi,sigma and xi.
  • ncov: Options of structure of sigma matrix; the default value is 2; ncov = 1 for a common covariance matrix; ncov = 2 for the unequal covariance/scale matrices.
  • type: Three types to fit to the model, 'ign' indicates fitting the model on the basis of the likelihood that ignores the missing label mechanism, 'full' indicates that the model to be fitted on the basis of the full likelihood, taking into account the missing-label mechanism, and 'com' indicate that the model to be fitted to a completed classified sample.

Returns

  • val: Value of negatvie objective function.
  • Maintainer: Ziyang Lyu
  • License: GPL-3
  • Last published: 2022-10-18

Useful links