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.