cov_mix function

Extract estimated covariance matrix of mixing distribution

Extract estimated covariance matrix of mixing distribution

This convenience function returns the estimated covariance matrix of the mixing distribution.

cov_mix(x, cor = FALSE)

Arguments

  • x: An object of class RprobitB_fit.
  • cor: If TRUE, returns the correlation matrix instead.

Returns

The estimated covariance matrix of the mixing distribution. In case of multiple classes, a list of matrices for each class.