Skip to contents

Computes a dimensional reduction (rotation) such that the first dimension passes through the means of two groups. Subsequent dimensions use SVD on the deflated data. Thin wrapper around ena.rotate.by.mean; kept for backward compatibility with existing ONA scripts.

Usage

ona.rotate.by.mean(x, groups, codes)

Arguments

x

A matrix or ena.points data table of ENA points (typically centered and normalized). Metadata columns are stripped automatically via as.matrix.

groups

A list of length 2 (or more), each element being a length-2 list list(a, b) where a and b are logical vectors or character unit IDs identifying the two groups.

codes

Character vector of code names corresponding to columns of x; used to label the rows of the returned rotation matrix.

Value

A list with rotation, codes, eigenvalues, and node.positions = NULL.