qgraph.pca {qgraph}R Documentation

qgraph.pca

Description

This function performs an Principal Component Analysis (PCA) using the 'princomp' function of the psych package (Revelle, 2010) and sends the acquired factor loadings to qgraph.loadings.

Usage

qgraph.pca( cor, factors=1, ..., rotation="promax", factorCors = TRUE)

Arguments

cor

A correlation matrix or a "principal" object

factors

The number of factors to extract

...

arguments passed to qgraph.loadings

rotation

rotation to be used. Can be "varimax", "promax" or "none"

factorCors

Logical, should the correlations between factors be plotted? Defaults to TRUE

Author(s)

Sacha Epskamp (qgraph@sachaepskamp.com)

References

Sacha Epskamp, Angelique O. J. Cramer, Lourens J. Waldorp, Verena D. Schmittmann, Denny Borsboom (2012). qgraph: Network Visualizations of Relationships in Psychometric Data. Journal of Statistical Software, 48(4), 1-18. URL http://www.jstatsoft.org/v48/i04/.

Revelle, W. (2010) psych: Procedures for Personality and Psychological Research Northwestern University, Evanston, http://personality-project.org/r/psych.manual.pdf, 1.0-93

See Also

qgraph qgraph.efa qgraph.loadings

Examples


## Not run: 
##D data(big5)
##D data(big5groups)
##D 
##D qgraph.pca(cor(big5),5,groups=big5groups,rotation="promax",minimum=0.2,
##D             cut=0.4,vsize=c(1,7),borders=FALSE,vTrans=200)
##D 
##D # Tree layout:
##D qgraph.pca(cor(big5), 5,groups=big5groups, rotation="promax", minimum=0.2, cut=0.4, vsize=c(1.5,15), borders=FALSE, layout="tree", width=20, filetype="R")
## End(Not run)


[Package qgraph version 1.2 Index]