R: Population or Simulated Sample Correlation Matrix from a...
structureSim
R Documentation
Population or Simulated Sample Correlation Matrix from a Given Factor Structure Matrix
Description
The structureSim function returns a population and a sample correlation
matrices from a predefined congeneric factor structure.
Usage
structureSim(fload, reppar=30, repsim=100, N, quantile=0.95,
model="components", adequacy=FALSE, details=TRUE,
r2limen=0.75, all=FALSE)
Arguments
fload
matrix: loadings of the factor structure
reppar
numeric: number of replications for the parallel analysis
repsim
numeric: number of replications of the matrix correlation
simulation
N
numeric: number of subjects
quantile
numeric: quantile for the parallel analysis
model
character: "components" or "factors"
adequacy
logical: if TRUE prints the recovered population
matrix from the factor structure
details
logical: if TRUE outputs details of the
repsim simulations
r2limen
numeric: R2 limen value for the R2 Nelson index
all
logical: if TRUE computes the Bentler and Yuan
index (very long computing time to consider)
Value
values
the output depends of the logical value of details. If FALSE,
returns only statistics about the eigenvalues: mean, median, quantile,
standard deviation, minimum and maximum. If TRUE,
returns also details about the repsim simulations.
If adequacy = TRUE returns the recovered factor structure
Zwick, W. R. and Velicer, W. F. (1986). Comparison of five rules for
determining the number of components to retain. Psychological Bulletin, 99, 432-442.