eigen.summary function

Summarize Eigenvalues and Eigenvectors of a Covariance Matrix

Summarize Eigenvalues and Eigenvectors of a Covariance Matrix

This function computes the eigenvalues and eigenvectors of a given covariance matrix, ensures sign consistency in the eigenvectors, and outputs a formatted LaTeX table displaying the results.

eigen.summary( cov.matrix, caption = "Eigenvectors of Covariance Matrix", space_after_caption = "5mm" )

Arguments

  • cov.matrix: A square numeric matrix representing the covariance matrix.
  • caption: A character string specifying the table caption (default: "Eigenvectors of Covariance Matrix").
  • space_after_caption: A character string specifying the space after the caption in LaTeX (default: "5mm").

Returns

A LaTeX formatted table displaying the eigenvectors and eigenvalues.

Examples

cov_matrix <- matrix(c(4, 2, 2, 3), nrow = 2) eigen.summary(cov_matrix)
  • Maintainer: Aidan J. Wagner
  • License: MIT + file LICENSE
  • Last published: 2025-03-24

Useful links