Function to Display PCA Loadings and Scores
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).
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
## 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.