pca.weight | R Documentation |
pca.weight produce the coefficients of the first principal compoment
pca.weight(emp.cor)
emp.cor |
empirical correlation matrix of the dataset |
library(MASS)
# a three biomarkers dataset generated from independent normal(0,1)
X = mvrnorm(n = 100, mu=rep(0,3), Sigma=diag(3), tol = 1e-6, empirical = FALSE, EISPACK = FALSE)
emp.cor <- cor(X)
pca.weight(emp.cor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.