Learn R Programming

RVAideMemoire (version 0.9-45-2)

cor.sparse: Correlation between variables and components in sparse multivariate analyses

Description

Calculates correlation between variables and components in sparse multivariate analyses (either obtained from spca, sipca or splsda).

Usage

cor.sparse(x)

Arguments

x
object of class "spca" (from spca), "sipca" (from sipca) or "splsda" (from

See Also

spca, sipca, plsda

Examples

Run this code
# sPCA
require(mixOmics)
data(liver.toxicity)

spca.rat <- spca(liver.toxicity$gene,ncomp=2,keepX=rep(20,2))
cor.sparse(spca.rat)

Run the code above in your browser using DataLab