psych (version 1.0-17)

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)

Arguments

ncases
Number of simulated cases
nvariables
number of simulated variables

Value

  • VSS like output to be plotted by VSS.plot

References

~put references to the literature/web site here ~

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)       #function call 
{  
 simdata=matrix(rnorm(ncases*nvariables),nrow=ncases,ncol=nvariables)    #make up simulated data
 testsim <- VSS(simdata,8,"none")
 return(testsim)
 }

Run the code above in your browser using DataCamp Workspace