Learn R Programming

psychmeta (version 0.2.4)

unmix_matrix: Estimate average within-group covariance matrices from a mixture covariance matrix

Description

Estimate average within-group covariance matrices from a mixture covariance matrix

Usage

unmix_matrix(sigma, mu_mat, p_vec, N = NULL, group_names = NULL,
  var_names = NULL)

Arguments

sigma

Mixture covariance matrix.

mu_mat

Matrix of mean parameters, with groups on the rows and variables on the columns.

p_vec

Vector of proportion of cases in each group.

N

Optional total sample size across all groups (used to compute unbiased covariance estimates).

group_names

Optional vector of group names.

var_names

Optional vector of variable names.

Value

List of within-group covariances and means.