Learn R Programming

qgraph (version 1.5)

qgraph.efa: qgraph.efa

Description

This function performs an Exploratory Factor Analysis (EFA) using the factanal (stats) function and sends the acquired factor loadings to qgraph.loadings.

Usage

qgraph.efa(dat,factors=1,...,rotation="promax",residuals=TRUE,
		factorCors=NULL,scores="regression",
		corMat=nrow(dat)==ncol(dat) && all(dat==t(dat)))

Arguments

dat

A correlation matrix, data matrix or a "factanal" object

factors

The number of factors to extract

rotation

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

residuals

Logical indicating if residuals should be plotted. Defaults to TRUE

factorCors

Logical indicating if correlations of factors should be extracted and plotted. Defaults to FALSE if a correlation matrix is used and TRUE if a data matrix is used.

...

arguments passed to qgraph.loadings

scores

Method used to extract scores in factanal

corMat

Logical indicating if the 'dat' object is a correlation matrix (TRUE) or data matrix (FALSE)

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/.

See Also

qgraph qgraph.pca qgraph.loadings

Examples

Run this code
# NOT RUN {
data(big5)
data(big5groups)

qgraph.efa(big5,5,groups=big5groups,rotation="promax",minimum=0.2,cut=0.4,
		   vsize=c(1,7),borders=FALSE,vTrans=200)

# Tree layout:
qgraph.efa(big5,5,groups=big5groups,rotation="promax",minimum=0.2,cut=0.4,
		   vsize=c(1,7),borders=FALSE,layout="tree",width=20,filetype="R")
# }

Run the code above in your browser using DataLab