Learn R Programming

psych (version 1.0-23)

VSS.parallel: Compare real and random VSS solutions

Description

Another useful test for the number of factors is when the eigen values of a random matrix are greater than the eigen values of a a real matrix. Here we show VSS solutions to random data.

Usage

VSS.parallel(ncases, nvariables,scree=FALSE,rotate="none")

Arguments

ncases
Number of simulated cases
nvariables
number of simulated variables
scree
Show a scree plot for random data -- see omega
rotate
rotate="none" or rotate="varimax"

Value

  • VSS like output to be plotted by VSS.plot

References

Very Simple Structure (VSS)

See Also

VSS.plot, ICLUST, omega

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(ncases,nvariables,scree=FALSE,rotate="none")       #function call 
{  
 simdata=matrix(rnorm(ncases*nvariables),nrow=ncases,ncol=nvariables)    #make up simulated data
 if(scree) {VSS.scree(simdata) 
 testsim <- simdata}  else {testsim <- VSS(simdata,8,rotate)}
 return(testsim)
 }

Run the code above in your browser using DataLab