View source: R/Supplementary4Vari.R
| supplementary4Vari | R Documentation | 
Varimax
rotation.supplementary4Vari
Computes the projection of supplementary elements
(rows or columns) for a PCA (computed with
ExPosition::epPCA())
followed by a Varimax rotation
(computed with
data4PCCAR::epVari()).
Supplementary elements can be rows or columns:
If the original data set had dimensions I by J,
supplementary rows should have dimensions Isup by J,
and
supplementary columns should have dimensions I by Jsup.
Note that for  supplementary columns, the parameters
scale and center need to be specified in the call.
supplementary4Vari(
  SUP.DATA,
  resPCA,
  resVari,
  set = "rows",
  center = TRUE,
  scale = "SS1"
)
| SUP.DATA | the supplementary data set.
Can be rows (dimensions  | 
| resPCA | the results of a PCA performed by
 | 
| resVari | the results of a  | 
| set | what set ( | 
| center | value of the  | 
| scale | value of the  | 
The computation of the coordinates
is obtained by first projecting the data
as supplementary elements
(using supplementaryCols or
supplementaryRows from ExPosition) in the
unrotated space and then rotating in the Varimax
space using the rotation matrix from epiVari().
a list with the coordinates of the elements in
the Varimax space. Coordinates are denoted $fii for
the rows and $fjj for
the  columns.
Hervé Abdi
epVari epPCA
## Not run: 
if(interactive()){
library(ExPosition) # for epPCA()
resPCA       <- epPCA(iris[1:4], scale = 'SS1', graphs = FALSE)
resVari      <- epVari(resPCA)
resVariSup.i <- supplementary4Vari(matrix(c(5,4,2,.5), nrow = 1),
                                   resPCA, resVari)
 }
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.