Learn R Programming

dispersionIndicators (version 0.1.5)

compute_inter: Computes Integrated Covariance Mahalanobis (ICM) distances between batches barycenters in PCA-reduced space, using a reference bacth and either mean or median for center references.

Description

Computes Integrated Covariance Mahalanobis (ICM) distances between batches barycenters in PCA-reduced space, using a reference bacth and either mean or median for center references.

Usage

compute_inter(
  pc_data,
  batch_col,
  ref_batch,
  center_method = c("mean", "median")
)

Value

A data frame with Mahalanobis distances for each batch against the reference.

Arguments

pc_data

PCA-reduced data frame.

batch_col

Name of the column representing batch or group.

ref_batch

Name of the reference batch for distance computation.

center_method

Method for centering: "mean" or "median".