Description Usage Arguments Details Value Note Author(s) See Also Examples
View source: R/gx.rqpca.print.R
Function to display PCA matrices following computations by functions gx.mva
, gx.mva.closed
, gx.robmva
, gx.robmva.closed
or gx.rotate
. The user may optionally display the loadings (default), the percentage contribution of the variables to the loadings, i.e. communalities (not default), and the scores on the PCs (default).
1 | gx.rqpca.print(save, ifload = TRUE, ifcntrb = FALSE, ifscore = TRUE)
|
save |
a saved object from any of functions |
ifload |
if |
ifcntrb |
if |
ifscore |
if |
By default the PCA loadings and scores on the PCs are displayed on the current device. Optionally the percentage contribution, communality, of each variable to each PC may also be displayed. Additionally a table of cumulative percent contributions, communalities, is displayed to assist in deciding how many components to retain for rotation or further study. When the saved object from gx.rotate
is the input object both the original and Varimax loadings and scores will be displayed by default.
The last displayed table, table.rows
, is returned and may be saved as an object if required.
For large tables, particularly scores, it may be preferrable to save them as ‘.csv’ files using gx.rqpca.save
for inspection and later use.
Robert G. Garrett
gx.rqpca.save
, gx.mva
, gx.mva.closed
, gx.robmva
, gx.robmva.closed
, gx.rotate
.
1 2 3 4 5 6 7 8 9 | ## Make test data available
data(sind.mat2open)
## Estimate and display robust PCA loadings and scores
sind.save <- gx.robmva.closed(sind.mat2open)
gx.rqpca.print(sind.save, ifcntrb = TRUE)
## Clean-up
rm(sind.save)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.