Skip to contents

Computes the Hotelling's T² ellipse for a bivariate dataset, commonly used to visualise multivariate confidence intervals in score plots.

Usage

.hotellingsT2(x, y, alpha = 0.95)

Arguments

x

Numeric vector. First dimension (e.g., PC1 or t[1]).

y

Numeric vector. Second dimension (e.g., PC2 or t[2]).

alpha

Numeric. Confidence level for the ellipse. Default is 0.95.

Value

A data.frame with two columns V1 and V2 containing coordinates of the T² ellipse.

References

Geladi, P. and Kowalski, B.R. (1986). Partial least squares regression: a tutorial. Analytica Chimica Acta, 185, 1–17.

See also

Other NMR ++: minmax()

Author

Torben Kimhofer