Skip to contents

Computes a dimensional reduction from a matrix of points such that the first dimension of the projected space passes through the means of two groups in the original space. Subsequent dimensions are computed using SVD on the deflated data. Delegates to means_rotation.

Usage

ena.rotate.by.mean(enaset, groups = NULL, params = groups)

Arguments

enaset

An ENAset or compatible list with model$points.for.projection, connection.counts$ENA_UNIT, line.weights, and rotation$codes.

groups

A list containing one or more pairs; each pair is a length-2 list list(a, b) where a and b are either logical vectors (length = number of units) or character vectors of unit IDs.

params

Alias for groups; used when called from the pipe API.

Value

A list with rotation, codes, eigenvalues, and node.positions = NULL, suitable for use inside rotate().