nBartlett(x, N, alpha=0.05, cor=TRUE, details=TRUE, correction=TRUE, ...)vector of eigenvalues, a matrix of
correlations or of covariances or a data.frame of data (eigenFrom)TRUE computes eigenvalues from a correlation
matrix, else from a covariance matrixTRUE also return detains about the
computation for each eigenvalueTRUE use a correction for the degree
of freedom after the first eigenvaluecor or
cov functionsplotuScree,
nScree,
plotnScree,
plotParallel## SIMPLE EXAMPLE OF A BARTLETT PROCEDURE
data(dFactors)
eig <- dFactors$Raiche$eigenvalues
results <- nBartlett(x=eig, N= 100, alpha=0.05, details=TRUE)
results
plotuScree(eig, main=paste(results$nFactors[1], ", ",
results$nFactors[2], "or ",
results$nFactors[3],
"factors retained by the LRT procedures",
sep=""))Run the code above in your browser using DataLab