View source: R/eigen.summary.R
eigen.summary | R Documentation |
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"
)
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"). |
A LaTeX formatted table displaying the eigenvectors and eigenvalues.
cov_matrix <- matrix(c(4, 2, 2, 3), nrow = 2)
eigen.summary(cov_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.