



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




set printback=none width=80 seed = 1953125. matrix. compute cr = { 1, 0.77, 0.53, 0.54, 0.54, 0.3, 0.16, 0.36, -0.11, -0.1, -0.02, 0.14, 0.09, 0.21, 0.16, 0.23, 0.38, 0.32, 0.37, 0.22, 0.19, 0.49; 0.77, 1, 0.5, 0.44, 0.48, 0.28, 0.2, 0.34, -0.05, -0.09, -0.07, -0.02, -0.01, 0.18, 0.21, 0.24, 0.36, 0.17, 0.23, 0.04, -0.01, 0.26; 0.53, 0.5, 1, 0.74, 0.91, 0.72, 0.28, 0.79, 0.08, -0.03, 0.22, 0.04, 0.06, 0.15, 0.22, 0.09, 0.13, 0.18, 0.29, -0.01, -0.06, 0.04; 0.54, 0.44, 0.74, 1, 0.82, 0.63, 0.19, 0.56, 0.02, -0.07, 0.23, 0.05, 0.1, 0.15, 0.22, 0.12, 0.21, 0.22, 0.35, 0.05, 0.04, 0.16; 0.54, 0.48, 0.91, 0.82, 1, 0.75, 0.26, 0.7, 0.05, -0.08, 0.21, 0.07, 0.09, 0.14, 0.22, 0.12, 0.14, 0.17, 0.28, 0.06, 0.05, 0.1; 0.3, 0.28, 0.72, 0.63, 0.75, 1, 0.31, 0.63, 0.2, 0.02, 0.27, -0.03, -0.03, -0.01, 0.23, 0.05, 0.1, 0.27, 0.3, -0.05, -0.13, -0.08; 0.16, 0.2, 0.28, 0.19, 0.26, 0.31, 1, 0.38, 0.03, 0.15, 0.29, 0.23, 0.24, 0.16, 0.29, 0.19, 0.07, 0.17, 0.15, -0.22, -0.15, -0.1; 0.36, 0.34, 0.79, 0.56, 0.7, 0.63, 0.38, 1, 0.14, 0.05, 0.37, 0.11, 0.11, 0.13, 0.18, 0.08, 0, 0.13, 0.2, -0.06, -0.1, -0.06; -0.11, -0.05, 0.08, 0.02, 0.05, 0.2, 0.03, 0.14, 1, 0.5, 0.44, -0.04, -0.1, 0.13, 0.03, 0.08, -0.19, - 0.01, -0.03, 0.01, 0.02, -0.23; -0.1, -0.09, -0.03, -0.07, -0.08, 0.02, 0.15, 0.05, 0.5, 1, 0.62, 0.37, 0.08, 0.11, -0.07, 0.41, -0.04, 0.12, 0.18, 0.22, 0.22, -0.04; -0.02, -0.07, 0.22, 0.23, 0.21, 0.27, 0.29, 0.37, 0.44, 0.62, 1, 0.31, 0.21, 0.28, 0.09, 0.24, -0.07, 0.14, 0.16, 0.11, 0.12, -0.12; 0.14, -0.02, 0.04, 0.05, 0.07, -0.03, 0.23, 0.11, -0.04, 0.37, 0.31, 1, 0.73, 0.12, 0.1, 0.33, 0.23, 0.33, 0.36, 0.31, 0.49, 0.28; 0.09, -0.01, 0.06, 0.1, 0.09, -0.03, 0.24, 0.11, -0.1, 0.08, 0.21, 0.73, 1, 0.31, 0.32, 0.05, 0.09, 0.19, 0.12, 0, 0.17, 0.09; 0.21, 0.18, 0.15, 0.15, 0.14, -0.01, 0.16, 0.13, 0.13, 0.11, 0.28, 0.12, 0.31, 1, 0.41, 0.12, -0.01, 0, - 0.02, -0.05, 0.02, 0.08; 0.16, 0.21, 0.22, 0.22, 0.22, 0.23, 0.29, 0.18, 0.03, -0.07, 0.09, 0.1, 0.32, 0.41, 1, 0.1, 0.18, 0.19, 0.12, -0.28, -0.22, -0.02; 0.23, 0.24, 0.09, 0.12, 0.12, 0.05, 0.19, 0.08, 0.08, 0.41, 0.24, 0.33, 0.05, 0.12, 0.1, 1, 0.29, 0.2, 0.22, 0.26, 0.23, 0.15; 0.38, 0.36, 0.13, 0.21, 0.14, 0.1, 0.07, 0, -0.19, -0.04, -0.07, 0.23, 0.09, -0.01, 0.18, 0.29, 1, 0.47, 0.51, 0.27, 0.26, 0.42; 0.32, 0.17, 0.18, 0.22, 0.17, 0.27, 0.17, 0.13, -0.01, 0.12, 0.14, 0.33, 0.19, 0, 0.19, 0.2, 0.47, 1, 0.41, 0.37, 0.25, 0.31; 0.37, 0.23, 0.29, 0.35, 0.28, 0.3, 0.15, 0.2, -0.03, 0.18, 0.16, 0.36, 0.12, -0.02, 0.12, 0.22, 0.51, 0.41, 1, 0.42, 0.34, 0.42; 0.22, 0.04, -0.01, 0.05, 0.06, -0.05, -0.22, -0.06, 0.01, 0.22, 0.11, 0.31, 0, -0.05, -0.28, 0.26, 0.27, 0.37, 0.42, 1, 0.73, 0.57; 0.19, -0.01, -0.06, 0.04, 0.05, -0.13, -0.15, -0.1, 0.02, 0.22, 0.12, 0.49, 0.17, 0.02, -0.22, 0.23, 0.26, 0.25, 0.34, 0.73, 1, 0.62; 0.49, 0.26, 0.04, 0.16, 0.1, -0.08, -0.1, -0.06, -0.23, -0.04, -0.12, 0.28, 0.09, 0.08, -0.02, 0.15, 0.42, 0.31, 0.42, 0.57, 0.62, 1 }. call eigen (cr,eigvect,eigval). compute loadings = eigvect * sqrt(mdiag(eigval)). compute fm = make(nrow(cr),2,-9999). compute fm(1,2) = (mssq(cr)-ncol(cr))/(ncol(cr)(ncol(cr)-1)). loop #m = 1 to ncol(cr) - 1. compute a = loadings(:,1:#m). compute partcov = cr - (a * t(a)). compute d = mdiag( 1 / (sqrt(diag(partcov))) ). compute pr = d * partcov * d. compute fm(#m+1,2) = (mssq(pr)-ncol(cr))/(ncol(cr)(ncol(cr)-1)). end loop.
compute fm(#s,1) = #s -1. do if ( fm(#s,2) < minfm ). compute minfm = fm(#s,2). compute nfactors = #s - 1. end if. end loop. print /title="Velicer's Minimum Average Partial (MAP) Test:". print eigval /title="Eigenvalues" /format "f12.6". print fm /title="Velicer's Average Squared Correlations"/format "f12.6". print minfm/title="The smallest average squared correlation is"/format "f12.6". print nfactors /title="The number of components is". end matrix.