Learn R Programming

dispersionIndicators (version 0.1.5)

compute_individual_batch: Computes Integrated Covariance Mahalanobis (ICM) distances of all individuals in PCA-reduced space, against their batch-wise barycenter reference.

Description

Computes Integrated Covariance Mahalanobis (ICM) distances of all individuals in PCA-reduced space, against their batch-wise barycenter reference.

Usage

compute_individual_batch(pc_data, batch_col)

Value

A data frame with Mahalanobis distances for each individual against their batch barycenter.

Arguments

pc_data

PCA-reduced data frame.

batch_col

Name of the column representing batch or group.