1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16 dnl AT_BANNER([FACTOR procedure])
18 AT_SETUP([FACTOR extraction=paf method=correlation])
19 dnl This example is based on data from http://www.ats.ucla.edu/stat/Spss/output/factor1.htm
24 data list notable fixed /question13 to question24 1-12.
1458 question13 question14 question15 question16 question17 question18 question19 question20 question21 question22 question23 question24 (0).
1461 /variables question13 question14 question15 question16 question17 question18 question19 question20 question21 question22 question23 question24
1463 /print univariate det correlation
1466 /criteria factors(3)
1468 /method = correlation.
1471 AT_CHECK([pspp -O format=csv factor.sps], [0],
1472 [Table: Descriptive Statistics
1473 ,Mean,Std. Deviation,Analysis N
1474 question13,4.462,.729,1365
1475 question14,4.525,.700,1365
1476 question15,4.445,.732,1365
1477 question16,4.281,.829,1365
1478 question17,4.166,.895,1365
1479 question18,3.930,1.034,1365
1480 question19,4.077,.963,1365
1481 question20,3.777,.909,1365
1482 question21,3.774,.984,1365
1483 question22,3.607,1.116,1365
1484 question23,3.813,.957,1365
1485 question24,3.666,.926,1365
1487 Table: Correlation Matrix
1488 ,,question13,question14,question15,question16,question17,question18,question19,question20,question21,question22,question23,question24
1489 Correlations,question13,1.000,.661,.600,.566,.577,.409,.286,.304,.476,.333,.564,.454
1490 ,question14,.661,1.000,.635,.500,.552,.433,.320,.315,.449,.333,.565,.443
1491 ,question15,.600,.635,1.000,.505,.587,.457,.359,.356,.509,.369,.582,.435
1492 ,question16,.566,.500,.505,1.000,.586,.405,.335,.317,.452,.363,.459,.430
1493 ,question17,.577,.552,.587,.586,1.000,.555,.449,.417,.595,.450,.613,.521
1494 ,question18,.409,.433,.457,.405,.555,1.000,.627,.521,.554,.536,.569,.474
1495 ,question19,.286,.320,.359,.335,.449,.627,1.000,.446,.499,.484,.444,.374
1496 ,question20,.304,.315,.356,.317,.417,.521,.446,1.000,.425,.383,.410,.357
1497 ,question21,.476,.449,.509,.452,.595,.554,.499,.425,1.000,.507,.598,.500
1498 ,question22,.333,.333,.369,.363,.450,.536,.484,.383,.507,1.000,.493,.444
1499 ,question23,.564,.565,.582,.459,.613,.569,.444,.410,.598,.493,1.000,.705
1500 ,question24,.454,.443,.435,.430,.521,.474,.374,.357,.500,.444,.705,1.000
1501 Determinant,.002,,,,,,,,,,,,
1503 Table: Factor Matrix
1506 question13,.713,.398,
1507 question14,.703,.339,
1511 question18,.740,-.345,
1512 question19,.616,-.415,
1516 question23,.819,,.345
1517 question24,.695,,.386
1519 Table: Rotated Factor Matrix
1526 question17,.587,.446,
1530 question21,.402,.533,.321
1532 question23,.449,.377,.668
1533 question24,.324,.321,.652
1538 AT_SETUP([FACTOR extraction=pc method=correlation])
1539 dnl This example is from http://www.ats.ucla.edu/stat/spss/whatstat/whatstat.htm
1541 AT_DATA([factor2.sps],
1542 [set format = F11.3.
1545 data list notable list /id female race ses schtyp prog read write math science socst.
1547 70.00 .00 4.00 1.00 1.00 1.00 57.00 52.00 41.00 47.00 57.00
1548 121.00 1.00 4.00 2.00 1.00 3.00 68.00 59.00 53.00 63.00 61.00
1549 86.00 .00 4.00 3.00 1.00 1.00 44.00 33.00 54.00 58.00 31.00
1550 141.00 .00 4.00 3.00 1.00 3.00 63.00 44.00 47.00 53.00 56.00
1551 172.00 .00 4.00 2.00 1.00 2.00 47.00 52.00 57.00 53.00 61.00
1552 113.00 .00 4.00 2.00 1.00 2.00 44.00 52.00 51.00 63.00 61.00
1553 50.00 .00 3.00 2.00 1.00 1.00 50.00 59.00 42.00 53.00 61.00
1554 11.00 .00 1.00 2.00 1.00 2.00 34.00 46.00 45.00 39.00 36.00
1555 84.00 .00 4.00 2.00 1.00 1.00 63.00 57.00 54.00 58.00 51.00
1556 48.00 .00 3.00 2.00 1.00 2.00 57.00 55.00 52.00 50.00 51.00
1557 75.00 .00 4.00 2.00 1.00 3.00 60.00 46.00 51.00 53.00 61.00
1558 60.00 .00 4.00 2.00 1.00 2.00 57.00 65.00 51.00 63.00 61.00
1559 95.00 .00 4.00 3.00 1.00 2.00 73.00 60.00 71.00 61.00 71.00
1560 104.00 .00 4.00 3.00 1.00 2.00 54.00 63.00 57.00 55.00 46.00
1561 38.00 .00 3.00 1.00 1.00 2.00 45.00 57.00 50.00 31.00 56.00
1562 115.00 .00 4.00 1.00 1.00 1.00 42.00 49.00 43.00 50.00 56.00
1563 76.00 .00 4.00 3.00 1.00 2.00 47.00 52.00 51.00 50.00 56.00
1564 195.00 .00 4.00 2.00 2.00 1.00 57.00 57.00 60.00 58.00 56.00
1565 114.00 .00 4.00 3.00 1.00 2.00 68.00 65.00 62.00 55.00 61.00
1566 85.00 .00 4.00 2.00 1.00 1.00 55.00 39.00 57.00 53.00 46.00
1567 167.00 .00 4.00 2.00 1.00 1.00 63.00 49.00 35.00 66.00 41.00
1568 143.00 .00 4.00 2.00 1.00 3.00 63.00 63.00 75.00 72.00 66.00
1569 41.00 .00 3.00 2.00 1.00 2.00 50.00 40.00 45.00 55.00 56.00
1570 20.00 .00 1.00 3.00 1.00 2.00 60.00 52.00 57.00 61.00 61.00
1571 12.00 .00 1.00 2.00 1.00 3.00 37.00 44.00 45.00 39.00 46.00
1572 53.00 .00 3.00 2.00 1.00 3.00 34.00 37.00 46.00 39.00 31.00
1573 154.00 .00 4.00 3.00 1.00 2.00 65.00 65.00 66.00 61.00 66.00
1574 178.00 .00 4.00 2.00 2.00 3.00 47.00 57.00 57.00 58.00 46.00
1575 196.00 .00 4.00 3.00 2.00 2.00 44.00 38.00 49.00 39.00 46.00
1576 29.00 .00 2.00 1.00 1.00 1.00 52.00 44.00 49.00 55.00 41.00
1577 126.00 .00 4.00 2.00 1.00 1.00 42.00 31.00 57.00 47.00 51.00
1578 103.00 .00 4.00 3.00 1.00 2.00 76.00 52.00 64.00 64.00 61.00
1579 192.00 .00 4.00 3.00 2.00 2.00 65.00 67.00 63.00 66.00 71.00
1580 150.00 .00 4.00 2.00 1.00 3.00 42.00 41.00 57.00 72.00 31.00
1581 199.00 .00 4.00 3.00 2.00 2.00 52.00 59.00 50.00 61.00 61.00
1582 144.00 .00 4.00 3.00 1.00 1.00 60.00 65.00 58.00 61.00 66.00
1583 200.00 .00 4.00 2.00 2.00 2.00 68.00 54.00 75.00 66.00 66.00
1584 80.00 .00 4.00 3.00 1.00 2.00 65.00 62.00 68.00 66.00 66.00
1585 16.00 .00 1.00 1.00 1.00 3.00 47.00 31.00 44.00 36.00 36.00
1586 153.00 .00 4.00 2.00 1.00 3.00 39.00 31.00 40.00 39.00 51.00
1587 176.00 .00 4.00 2.00 2.00 2.00 47.00 47.00 41.00 42.00 51.00
1588 177.00 .00 4.00 2.00 2.00 2.00 55.00 59.00 62.00 58.00 51.00
1589 168.00 .00 4.00 2.00 1.00 2.00 52.00 54.00 57.00 55.00 51.00
1590 40.00 .00 3.00 1.00 1.00 1.00 42.00 41.00 43.00 50.00 41.00
1591 62.00 .00 4.00 3.00 1.00 1.00 65.00 65.00 48.00 63.00 66.00
1592 169.00 .00 4.00 1.00 1.00 1.00 55.00 59.00 63.00 69.00 46.00
1593 49.00 .00 3.00 3.00 1.00 3.00 50.00 40.00 39.00 49.00 47.00
1594 136.00 .00 4.00 2.00 1.00 2.00 65.00 59.00 70.00 63.00 51.00
1595 189.00 .00 4.00 2.00 2.00 2.00 47.00 59.00 63.00 53.00 46.00
1596 7.00 .00 1.00 2.00 1.00 2.00 57.00 54.00 59.00 47.00 51.00
1597 27.00 .00 2.00 2.00 1.00 2.00 53.00 61.00 61.00 57.00 56.00
1598 128.00 .00 4.00 3.00 1.00 2.00 39.00 33.00 38.00 47.00 41.00
1599 21.00 .00 1.00 2.00 1.00 1.00 44.00 44.00 61.00 50.00 46.00
1600 183.00 .00 4.00 2.00 2.00 2.00 63.00 59.00 49.00 55.00 71.00
1601 132.00 .00 4.00 2.00 1.00 2.00 73.00 62.00 73.00 69.00 66.00
1602 15.00 .00 1.00 3.00 1.00 3.00 39.00 39.00 44.00 26.00 42.00
1603 67.00 .00 4.00 1.00 1.00 3.00 37.00 37.00 42.00 33.00 32.00
1604 22.00 .00 1.00 2.00 1.00 3.00 42.00 39.00 39.00 56.00 46.00
1605 185.00 .00 4.00 2.00 2.00 2.00 63.00 57.00 55.00 58.00 41.00
1606 9.00 .00 1.00 2.00 1.00 3.00 48.00 49.00 52.00 44.00 51.00
1607 181.00 .00 4.00 2.00 2.00 2.00 50.00 46.00 45.00 58.00 61.00
1608 170.00 .00 4.00 3.00 1.00 2.00 47.00 62.00 61.00 69.00 66.00
1609 134.00 .00 4.00 1.00 1.00 1.00 44.00 44.00 39.00 34.00 46.00
1610 108.00 .00 4.00 2.00 1.00 1.00 34.00 33.00 41.00 36.00 36.00
1611 197.00 .00 4.00 3.00 2.00 2.00 50.00 42.00 50.00 36.00 61.00
1612 140.00 .00 4.00 2.00 1.00 3.00 44.00 41.00 40.00 50.00 26.00
1613 171.00 .00 4.00 2.00 1.00 2.00 60.00 54.00 60.00 55.00 66.00
1614 107.00 .00 4.00 1.00 1.00 3.00 47.00 39.00 47.00 42.00 26.00
1615 81.00 .00 4.00 1.00 1.00 2.00 63.00 43.00 59.00 65.00 44.00
1616 18.00 .00 1.00 2.00 1.00 3.00 50.00 33.00 49.00 44.00 36.00
1617 155.00 .00 4.00 2.00 1.00 1.00 44.00 44.00 46.00 39.00 51.00
1618 97.00 .00 4.00 3.00 1.00 2.00 60.00 54.00 58.00 58.00 61.00
1619 68.00 .00 4.00 2.00 1.00 2.00 73.00 67.00 71.00 63.00 66.00
1620 157.00 .00 4.00 2.00 1.00 1.00 68.00 59.00 58.00 74.00 66.00
1621 56.00 .00 4.00 2.00 1.00 3.00 55.00 45.00 46.00 58.00 51.00
1622 5.00 .00 1.00 1.00 1.00 2.00 47.00 40.00 43.00 45.00 31.00
1623 159.00 .00 4.00 3.00 1.00 2.00 55.00 61.00 54.00 49.00 61.00
1624 123.00 .00 4.00 3.00 1.00 1.00 68.00 59.00 56.00 63.00 66.00
1625 164.00 .00 4.00 2.00 1.00 3.00 31.00 36.00 46.00 39.00 46.00
1626 14.00 .00 1.00 3.00 1.00 2.00 47.00 41.00 54.00 42.00 56.00
1627 127.00 .00 4.00 3.00 1.00 2.00 63.00 59.00 57.00 55.00 56.00
1628 165.00 .00 4.00 1.00 1.00 3.00 36.00 49.00 54.00 61.00 36.00
1629 174.00 .00 4.00 2.00 2.00 2.00 68.00 59.00 71.00 66.00 56.00
1630 3.00 .00 1.00 1.00 1.00 2.00 63.00 65.00 48.00 63.00 56.00
1631 58.00 .00 4.00 2.00 1.00 3.00 55.00 41.00 40.00 44.00 41.00
1632 146.00 .00 4.00 3.00 1.00 2.00 55.00 62.00 64.00 63.00 66.00
1633 102.00 .00 4.00 3.00 1.00 2.00 52.00 41.00 51.00 53.00 56.00
1634 117.00 .00 4.00 3.00 1.00 3.00 34.00 49.00 39.00 42.00 56.00
1635 133.00 .00 4.00 2.00 1.00 3.00 50.00 31.00 40.00 34.00 31.00
1636 94.00 .00 4.00 3.00 1.00 2.00 55.00 49.00 61.00 61.00 56.00
1637 24.00 .00 2.00 2.00 1.00 2.00 52.00 62.00 66.00 47.00 46.00
1638 149.00 .00 4.00 1.00 1.00 1.00 63.00 49.00 49.00 66.00 46.00
1639 82.00 1.00 4.00 3.00 1.00 2.00 68.00 62.00 65.00 69.00 61.00
1640 8.00 1.00 1.00 1.00 1.00 2.00 39.00 44.00 52.00 44.00 48.00
1641 129.00 1.00 4.00 1.00 1.00 1.00 44.00 44.00 46.00 47.00 51.00
1642 173.00 1.00 4.00 1.00 1.00 1.00 50.00 62.00 61.00 63.00 51.00
1643 57.00 1.00 4.00 2.00 1.00 2.00 71.00 65.00 72.00 66.00 56.00
1644 100.00 1.00 4.00 3.00 1.00 2.00 63.00 65.00 71.00 69.00 71.00
1645 1.00 1.00 1.00 1.00 1.00 3.00 34.00 44.00 40.00 39.00 41.00
1646 194.00 1.00 4.00 3.00 2.00 2.00 63.00 63.00 69.00 61.00 61.00
1647 88.00 1.00 4.00 3.00 1.00 2.00 68.00 60.00 64.00 69.00 66.00
1648 99.00 1.00 4.00 3.00 1.00 1.00 47.00 59.00 56.00 66.00 61.00
1649 47.00 1.00 3.00 1.00 1.00 2.00 47.00 46.00 49.00 33.00 41.00
1650 120.00 1.00 4.00 3.00 1.00 2.00 63.00 52.00 54.00 50.00 51.00
1651 166.00 1.00 4.00 2.00 1.00 2.00 52.00 59.00 53.00 61.00 51.00
1652 65.00 1.00 4.00 2.00 1.00 2.00 55.00 54.00 66.00 42.00 56.00
1653 101.00 1.00 4.00 3.00 1.00 2.00 60.00 62.00 67.00 50.00 56.00
1654 89.00 1.00 4.00 1.00 1.00 3.00 35.00 35.00 40.00 51.00 33.00
1655 54.00 1.00 3.00 1.00 2.00 1.00 47.00 54.00 46.00 50.00 56.00
1656 180.00 1.00 4.00 3.00 2.00 2.00 71.00 65.00 69.00 58.00 71.00
1657 162.00 1.00 4.00 2.00 1.00 3.00 57.00 52.00 40.00 61.00 56.00
1658 4.00 1.00 1.00 1.00 1.00 2.00 44.00 50.00 41.00 39.00 51.00
1659 131.00 1.00 4.00 3.00 1.00 2.00 65.00 59.00 57.00 46.00 66.00
1660 125.00 1.00 4.00 1.00 1.00 2.00 68.00 65.00 58.00 59.00 56.00
1661 34.00 1.00 1.00 3.00 2.00 2.00 73.00 61.00 57.00 55.00 66.00
1662 106.00 1.00 4.00 2.00 1.00 3.00 36.00 44.00 37.00 42.00 41.00
1663 130.00 1.00 4.00 3.00 1.00 1.00 43.00 54.00 55.00 55.00 46.00
1664 93.00 1.00 4.00 3.00 1.00 2.00 73.00 67.00 62.00 58.00 66.00
1665 163.00 1.00 4.00 1.00 1.00 2.00 52.00 57.00 64.00 58.00 56.00
1666 37.00 1.00 3.00 1.00 1.00 3.00 41.00 47.00 40.00 39.00 51.00
1667 35.00 1.00 1.00 1.00 2.00 1.00 60.00 54.00 50.00 50.00 51.00
1668 87.00 1.00 4.00 2.00 1.00 1.00 50.00 52.00 46.00 50.00 56.00
1669 73.00 1.00 4.00 2.00 1.00 2.00 50.00 52.00 53.00 39.00 56.00
1670 151.00 1.00 4.00 2.00 1.00 3.00 47.00 46.00 52.00 48.00 46.00
1671 44.00 1.00 3.00 1.00 1.00 3.00 47.00 62.00 45.00 34.00 46.00
1672 152.00 1.00 4.00 3.00 1.00 2.00 55.00 57.00 56.00 58.00 61.00
1673 105.00 1.00 4.00 2.00 1.00 2.00 50.00 41.00 45.00 44.00 56.00
1674 28.00 1.00 2.00 2.00 1.00 1.00 39.00 53.00 54.00 50.00 41.00
1675 91.00 1.00 4.00 3.00 1.00 3.00 50.00 49.00 56.00 47.00 46.00
1676 45.00 1.00 3.00 1.00 1.00 3.00 34.00 35.00 41.00 29.00 26.00
1677 116.00 1.00 4.00 2.00 1.00 2.00 57.00 59.00 54.00 50.00 56.00
1678 33.00 1.00 2.00 1.00 1.00 2.00 57.00 65.00 72.00 54.00 56.00
1679 66.00 1.00 4.00 2.00 1.00 3.00 68.00 62.00 56.00 50.00 51.00
1680 72.00 1.00 4.00 2.00 1.00 3.00 42.00 54.00 47.00 47.00 46.00
1681 77.00 1.00 4.00 1.00 1.00 2.00 61.00 59.00 49.00 44.00 66.00
1682 61.00 1.00 4.00 3.00 1.00 2.00 76.00 63.00 60.00 67.00 66.00
1683 190.00 1.00 4.00 2.00 2.00 2.00 47.00 59.00 54.00 58.00 46.00
1684 42.00 1.00 3.00 2.00 1.00 3.00 46.00 52.00 55.00 44.00 56.00
1685 2.00 1.00 1.00 2.00 1.00 3.00 39.00 41.00 33.00 42.00 41.00
1686 55.00 1.00 3.00 2.00 2.00 2.00 52.00 49.00 49.00 44.00 61.00
1687 19.00 1.00 1.00 1.00 1.00 1.00 28.00 46.00 43.00 44.00 51.00
1688 90.00 1.00 4.00 3.00 1.00 2.00 42.00 54.00 50.00 50.00 52.00
1689 142.00 1.00 4.00 2.00 1.00 3.00 47.00 42.00 52.00 39.00 51.00
1690 17.00 1.00 1.00 2.00 1.00 2.00 47.00 57.00 48.00 44.00 41.00
1691 122.00 1.00 4.00 2.00 1.00 2.00 52.00 59.00 58.00 53.00 66.00
1692 191.00 1.00 4.00 3.00 2.00 2.00 47.00 52.00 43.00 48.00 61.00
1693 83.00 1.00 4.00 2.00 1.00 3.00 50.00 62.00 41.00 55.00 31.00
1694 182.00 1.00 4.00 2.00 2.00 2.00 44.00 52.00 43.00 44.00 51.00
1695 6.00 1.00 1.00 1.00 1.00 2.00 47.00 41.00 46.00 40.00 41.00
1696 46.00 1.00 3.00 1.00 1.00 2.00 45.00 55.00 44.00 34.00 41.00
1697 43.00 1.00 3.00 1.00 1.00 2.00 47.00 37.00 43.00 42.00 46.00
1698 96.00 1.00 4.00 3.00 1.00 2.00 65.00 54.00 61.00 58.00 56.00
1699 138.00 1.00 4.00 2.00 1.00 3.00 43.00 57.00 40.00 50.00 51.00
1700 10.00 1.00 1.00 2.00 1.00 1.00 47.00 54.00 49.00 53.00 61.00
1701 71.00 1.00 4.00 2.00 1.00 1.00 57.00 62.00 56.00 58.00 66.00
1702 139.00 1.00 4.00 2.00 1.00 2.00 68.00 59.00 61.00 55.00 71.00
1703 110.00 1.00 4.00 2.00 1.00 3.00 52.00 55.00 50.00 54.00 61.00
1704 148.00 1.00 4.00 2.00 1.00 3.00 42.00 57.00 51.00 47.00 61.00
1705 109.00 1.00 4.00 2.00 1.00 1.00 42.00 39.00 42.00 42.00 41.00
1706 39.00 1.00 3.00 3.00 1.00 2.00 66.00 67.00 67.00 61.00 66.00
1707 147.00 1.00 4.00 1.00 1.00 2.00 47.00 62.00 53.00 53.00 61.00
1708 74.00 1.00 4.00 2.00 1.00 2.00 57.00 50.00 50.00 51.00 58.00
1709 198.00 1.00 4.00 3.00 2.00 2.00 47.00 61.00 51.00 63.00 31.00
1710 161.00 1.00 4.00 1.00 1.00 2.00 57.00 62.00 72.00 61.00 61.00
1711 112.00 1.00 4.00 2.00 1.00 2.00 52.00 59.00 48.00 55.00 61.00
1712 69.00 1.00 4.00 1.00 1.00 3.00 44.00 44.00 40.00 40.00 31.00
1713 156.00 1.00 4.00 2.00 1.00 2.00 50.00 59.00 53.00 61.00 61.00
1714 111.00 1.00 4.00 1.00 1.00 1.00 39.00 54.00 39.00 47.00 36.00
1715 186.00 1.00 4.00 2.00 2.00 2.00 57.00 62.00 63.00 55.00 41.00
1716 98.00 1.00 4.00 1.00 1.00 3.00 57.00 60.00 51.00 53.00 37.00
1717 119.00 1.00 4.00 1.00 1.00 1.00 42.00 57.00 45.00 50.00 43.00
1718 13.00 1.00 1.00 2.00 1.00 3.00 47.00 46.00 39.00 47.00 61.00
1719 51.00 1.00 3.00 3.00 1.00 1.00 42.00 36.00 42.00 31.00 39.00
1720 26.00 1.00 2.00 3.00 1.00 2.00 60.00 59.00 62.00 61.00 51.00
1721 36.00 1.00 3.00 1.00 1.00 1.00 44.00 49.00 44.00 35.00 51.00
1722 135.00 1.00 4.00 1.00 1.00 2.00 63.00 60.00 65.00 54.00 66.00
1723 59.00 1.00 4.00 2.00 1.00 2.00 65.00 67.00 63.00 55.00 71.00
1724 78.00 1.00 4.00 2.00 1.00 2.00 39.00 54.00 54.00 53.00 41.00
1725 64.00 1.00 4.00 3.00 1.00 3.00 50.00 52.00 45.00 58.00 36.00
1726 63.00 1.00 4.00 1.00 1.00 1.00 52.00 65.00 60.00 56.00 51.00
1727 79.00 1.00 4.00 2.00 1.00 2.00 60.00 62.00 49.00 50.00 51.00
1728 193.00 1.00 4.00 2.00 2.00 2.00 44.00 49.00 48.00 39.00 51.00
1729 92.00 1.00 4.00 3.00 1.00 1.00 52.00 67.00 57.00 63.00 61.00
1730 160.00 1.00 4.00 2.00 1.00 2.00 55.00 65.00 55.00 50.00 61.00
1731 32.00 1.00 2.00 3.00 1.00 3.00 50.00 67.00 66.00 66.00 56.00
1732 23.00 1.00 2.00 1.00 1.00 2.00 65.00 65.00 64.00 58.00 71.00
1733 158.00 1.00 4.00 2.00 1.00 1.00 52.00 54.00 55.00 53.00 51.00
1734 25.00 1.00 2.00 2.00 1.00 1.00 47.00 44.00 42.00 42.00 36.00
1735 188.00 1.00 4.00 3.00 2.00 2.00 63.00 62.00 56.00 55.00 61.00
1736 52.00 1.00 3.00 1.00 1.00 2.00 50.00 46.00 53.00 53.00 66.00
1737 124.00 1.00 4.00 1.00 1.00 3.00 42.00 54.00 41.00 42.00 41.00
1738 175.00 1.00 4.00 3.00 2.00 1.00 36.00 57.00 42.00 50.00 41.00
1739 184.00 1.00 4.00 2.00 2.00 3.00 50.00 52.00 53.00 55.00 56.00
1740 30.00 1.00 2.00 3.00 1.00 2.00 41.00 59.00 42.00 34.00 51.00
1741 179.00 1.00 4.00 2.00 2.00 2.00 47.00 65.00 60.00 50.00 56.00
1742 31.00 1.00 2.00 2.00 2.00 1.00 55.00 59.00 52.00 42.00 56.00
1743 145.00 1.00 4.00 2.00 1.00 3.00 42.00 46.00 38.00 36.00 46.00
1744 187.00 1.00 4.00 2.00 2.00 1.00 57.00 41.00 57.00 55.00 52.00
1745 118.00 1.00 4.00 2.00 1.00 1.00 55.00 62.00 58.00 58.00 61.00
1746 137.00 1.00 4.00 3.00 1.00 2.00 63.00 65.00 65.00 53.00 61.00
1750 /variables read write math science socst
1751 /analysis read write math science socst
1754 /criteria mineigen (.557)
1758 AT_CHECK([pspp -O format=csv factor2.sps], [0],
1759 [Table: Communalities
1767 Table: Total Variance Explained
1768 ,Initial Eigenvalues,,,Extraction Sums of Squared Loadings,,,Rotation Sums of Squared Loadings,,
1769 Component,Total,% of Variance,Cumulative %,Total,% of Variance,Cumulative %,Total,% of Variance,Cumulative %
1770 1,3.381,67.616,67.616,3.381,67.616,67.616,2.113,42.267,42.267
1771 2,.557,11.148,78.764,.557,11.148,78.764,1.825,36.497,78.764
1772 3,.407,8.136,86.900,,,,,,
1773 4,.356,7.123,94.023,,,,,,
1774 5,.299,5.977,100.000,,,,,,
1776 Table: Component Matrix
1785 Table: Rotated Component Matrix
1799 AT_SETUP([FACTOR empty dataset])
1800 dnl Test that something sane happens when the dataset contains no complete observations
1802 AT_DATA([factor-empty.sps],
1803 [data list notable list /x * y * z *.
1811 factor /variables = ALL.
1814 AT_CHECK([pspp -O format=csv factor-empty.sps], [0], [ignore])
1818 dnl Fixes a crash reported at
1819 dnl http://lists.gnu.org/archive/html/bug-gnu-pspp/2012-04/msg00001.html
1820 AT_SETUP([FACTOR /ROTATION=NOROTATE])
1821 AT_DATA([factor-norotate.sps], [dnl
1822 DATA LIST FREE / TRAIT1 TO TRAIT5 (F8.2).
1833 FACTOR /VARIABLES=TRAIT1 TO TRAIT5
1834 /ROTATION=NOROTATE /* NOROTATE may have caused the problem. */
1836 /PRINT=DEFAULT DET UNIVARIATE ROTATION SIG CORRELATION.
1839 AT_CHECK([pspp -O format=csv factor-norotate.sps], [0], [dnl
1840 Table: Descriptive Statistics
1841 ,Mean,Std. Deviation,Analysis N
1848 Table: Correlation Matrix
1849 ,,TRAIT1,TRAIT2,TRAIT3,TRAIT4,TRAIT5
1850 Correlations,TRAIT1,1.00,.30,.88,1.00,.54
1851 ,TRAIT2,.30,1.00,-.02,.33,.84
1852 ,TRAIT3,.88,-.02,1.00,.87,.13
1853 ,TRAIT4,1.00,.33,.87,1.00,.54
1854 ,TRAIT5,.54,.84,.13,.54,1.00
1855 Sig. (1-tailed),TRAIT1,,.260,.004,.000,.103
1856 ,TRAIT2,.260,,.482,.238,.009
1857 ,TRAIT3,.004,.482,,.006,.390
1858 ,TRAIT4,.000,.238,.006,,.103
1859 ,TRAIT5,.103,.009,.390,.103,
1860 Determinant,.00,,,,,
1862 Table: Communalities
1870 Table: Total Variance Explained
1871 ,Initial Eigenvalues,,,Extraction Sums of Squared Loadings,,
1872 Component,Total,% of Variance,Cumulative %,Total,% of Variance,Cumulative %
1873 1,3.26,65.26,65.26,3.26,65.26,65.26
1874 2,1.54,30.77,96.03,1.54,30.77,96.03
1875 3,.17,3.36,99.39,.17,3.36,99.39
1876 4,.03,.61,100.00,.03,.61,100.00
1879 Table: Component Matrix
1882 TRAIT1,.97,.23,-.08,.00
1883 TRAIT2,.52,-.81,.28,.00
1884 TRAIT3,.78,.59,.17,.00
1885 TRAIT4,.97,.21,-.04,.00
1886 TRAIT5,.70,-.67,-.23,.00
1892 dnl Fixes a bug in the way that the /CRITERIA = ITERATE option was interpreted.
1893 dnl http://lists.gnu.org/archive/html/bug-gnu-pspp/2013-09/msg00036.html
1894 AT_SETUP([FACTOR /CRITERIA=ITERATE])
1895 AT_DATA([factor-iterate.sps], [dnl
1897 data list notable list /x y z *.
1912 /CRITERIA = MINEIGEN (1) ITERATE (25)
1914 /METHOD = CORRELATION
1915 /PRINT = INITIAL EXTRACTION
1916 /CRITERIA = ITERATE (0)
1917 /ROTATION = NOROTATE.
1920 AT_CHECK([pspp -O format=csv factor-iterate.sps], [0], [dnl
1921 Table: Communalities
1927 Table: Total Variance Explained
1928 ,Initial Eigenvalues,,,Extraction Sums of Squared Loadings,,
1929 Factor,Total,% of Variance,Cumulative %,Total,% of Variance,Cumulative %
1930 1,2.404,80.124,80.124,2.155,71.847,71.847
1931 2,.425,14.166,94.290,,,
1932 3,.171,5.710,100.000,,,
1934 Table: Factor Matrix
1944 AT_SETUP([FACTOR promax])
1945 AT_DATA([factor-promax.sps], [dnl
1949 get file='llz.zsav'.
1952 /variables pz pn ps nz nn ns tz tn ts oz on os sz sn ss zz zn zs
1954 /print initial extraction rotation
1955 /criteria mineigen(1) iterate(25)
1958 /rotation promax (5).
1961 AT_CHECK([ln -s $top_srcdir/tests/language/stats/llz.zsav .], [0], [ignore])
1963 AT_CHECK([pspp -O format=csv factor-promax.sps], [0], [dnl
1964 Table: Communalities
1985 Table: Total Variance Explained
1986 ,Initial Eigenvalues,,,Extraction Sums of Squared Loadings,,,Rotation Sums of Squared Loadings
1987 Factor,Total,% of Variance,Cumulative %,Total,% of Variance,Cumulative %,Total
1988 1,2.968,16.491,16.491,2.411,13.393,13.393,2.355
1989 2,2.026,11.253,27.744,1.271,7.059,20.452,1.209
1990 3,1.622,9.011,36.756,.948,5.264,25.716,1.231
1991 4,1.086,6.032,42.788,.283,1.574,27.290,.770
1992 5,.996,5.533,48.321,,,,
1993 6,.923,5.130,53.451,,,,
1994 7,.873,4.852,58.303,,,,
1995 8,.856,4.756,63.060,,,,
1996 9,.836,4.644,67.703,,,,
1997 10,.816,4.534,72.237,,,,
1998 11,.785,4.359,76.596,,,,
1999 12,.740,4.110,80.706,,,,
2000 13,.713,3.964,84.670,,,,
2001 14,.653,3.626,88.296,,,,
2002 15,.633,3.519,91.815,,,,
2003 16,.604,3.356,95.171,,,,
2004 17,.484,2.687,97.858,,,,
2005 18,.386,2.142,100.000,,,,
2007 Table: Factor Matrix
2010 PZ,-.276,.154,.510,.124
2011 PN,.096,.129,-.091,.261
2012 PS,.746,-.085,.234,.063
2013 NZ,-.111,.323,.206,-.058
2014 NN,.007,.260,-.083,-.069
2015 NS,.366,.096,.046,.051
2016 TZ,-.228,.172,.509,.059
2017 TN,.131,.345,-.074,.029
2018 TS,.601,-.005,.098,.030
2019 OZ,-.145,.166,.322,-.081
2020 ON,.607,.082,.073,-.173
2021 OS,.757,-.059,.171,-.104
2022 SZ,-.142,.307,.226,-.066
2023 SN,.175,.436,-.183,.115
2024 SS,.199,.206,-.083,.302
2025 ZZ,-.074,.411,-.080,-.104
2026 ZN,.015,.580,-.252,-.114
2027 ZS,.365,.156,-.004,.015
2029 Table: Pattern Matrix
2032 PZ,-.063,-.126,.599,.085
2033 PN,-.035,.000,-.033,.325
2034 PS,.762,-.175,.058,.081
2035 NZ,.027,.230,.327,-.044
2036 NN,.008,.289,.008,-.026
2037 NS,.344,.044,.015,.091
2038 TZ,.004,-.074,.589,.020
2039 TN,.097,.307,.033,.103
2040 TS,.585,-.043,-.017,.062
2041 OZ,.046,.067,.382,-.109
2042 ON,.654,.151,-.029,-.145
2043 OS,.803,-.037,-.009,-.092
2044 SZ,.009,.213,.345,-.060
2045 SN,.065,.376,-.036,.227
2046 SS,.054,.042,-.013,.388
2047 ZZ,-.044,.434,.078,-.046
2048 ZN,-.025,.646,-.041,-.006
2049 ZS,.337,.133,-.013,.067
2051 Table: Structure Matrix
2054 PZ,-.177,-.058,.598,-.022
2055 PN,.068,.110,-.049,.317
2056 PS,.771,-.138,-.136,.240
2057 NZ,-.060,.236,.339,.019
2058 NN,.000,.281,.027,.076
2059 NS,.368,.080,-.068,.207
2060 TZ,-.127,-.028,.582,-.049
2061 TN,.122,.345,.023,.235
2062 TS,.607,-.018,-.160,.221
2063 OZ,-.074,.055,.384,-.101
2064 ON,.619,.104,-.160,.102
2065 OS,.778,-.064,-.190,.132
2066 SZ,-.086,.215,.361,-.009
2067 SN,.143,.453,-.044,.380
2068 SS,.171,.176,-.052,.420
2069 ZZ,-.073,.422,.120,.085
2070 ZN,-.013,.641,.008,.214
2071 ZS,.361,.158,-.088,.213
2073 Table: Factor Correlation Matrix
2075 1,1.000,.008,-.232,.294
2076 2,.008,1.000,.065,.347
2077 3,-.232,.065,1.000,-.076
2078 4,.294,.347,-.076,1.000
2089 AT_SETUP([FACTOR covariance matrix])
2091 AT_DATA([covariance-matrix.sps], [dnl
2094 variables = rowtype_ var01 var02 var03 var04 var05 var06 var07 var08
2095 / format = lower diagonal .
2097 mean 24.3 5.4 69.7 20.1 13.4 2.7 27.9 3.7
2098 sd 5.7 1.5 23.5 5.8 2.8 4.5 5.4 1.5
2099 n 92 92 92 92 92 92 92 92
2101 cov 1.539000 2.250000
2102 cov -29.469000 -5.992500 552.250000
2103 cov 11.901600 2.697000 -19.082000 33.640000
2104 cov 4.309200 0.672000 -7.896000 3.572800 7.840000
2105 cov 8.464500 1.012500 -17.977500 6.264000 2.646000 20.250000
2106 cov 15.390000 2.349000 -25.380000 10.022400 1.814400 9.234000 29.160000
2107 cov 1.453500 0.652500 -1.762500 1.740000 1.134000 1.350000 0.324000 2.250000
2110 factor matrix in (cov = *)
2111 / method = covariance
2112 / print = initial covariance
2114 / rotation = norotate.
2117 AT_CHECK([pspp -O format=csv covariance-matrix.sps], [0], [dnl
2118 Table: Covariance Matrix
2119 ,var01,var02,var03,var04,var05,var06,var07,var08
2120 var01,32.490,1.539,-29.469,11.902,4.309,8.464,15.390,1.454
2121 var02,1.539,2.250,-5.992,2.697,.672,1.013,2.349,.653
2122 var03,-29.469,-5.992,552.250,-19.082,-7.896,-17.977,-25.380,-1.763
2123 var04,11.902,2.697,-19.082,33.640,3.573,6.264,10.022,1.740
2124 var05,4.309,.672,-7.896,3.573,7.840,2.646,1.814,1.134
2125 var06,8.464,1.013,-17.977,6.264,2.646,20.250,9.234,1.350
2126 var07,15.390,2.349,-25.380,10.022,1.814,9.234,29.160,.324
2127 var08,1.454,.653,-1.763,1.740,1.134,1.350,.324,2.250
2129 Table: Communalities
2140 Table: Total Variance Explained
2141 ,Initial Eigenvalues,,
2142 Component,Total,% of Variance,Cumulative %
2143 1,556.895,81.881,81.881
2144 2,57.963,8.522,90.403
2145 3,23.576,3.466,93.869
2146 4,16.446,2.418,96.288
2147 5,14.603,2.147,98.435
2148 6,6.831,1.004,99.439
2150 8,1.440,.212,100.000
2152 Table: Component Matrix
2155 var01,1.394,4.388,1.513,-2.851,.849,.396,.033
2156 var02,.269,.460,-.173,.147,-.146,-.213,.872
2157 var03,-23.489,.725,.058,.003,.022,-.012,.006
2158 var04,.926,4.007,-4.068,.241,-.253,.218,-.026
2159 var05,.363,.829,-.172,-.255,.805,-2.492,.058
2160 var06,.843,2.354,.971,2.425,2.649,.392,.046
2161 var07,1.205,3.948,1.926,1.515,-2.450,-.317,-.087
2162 var08,.085,.319,-.157,-.011,.353,-.341,-.816
2169 dnl A more realistic example of factor analysis usage.
2170 AT_SETUP([FACTOR correlation matrix])
2172 AT_DATA([correlation-matrix.sps], [dnl
2176 variables = rowtype_
2177 cdi_actws_16 cdi_maxzin_16 rdls_passws_16 rdls_actws_16 cdi_actws_20 cdi_maxzin_20 cdi_actws_26 cdi_maxzin_26 rdls_passws_26 rdls_actws_26
2178 nepsy_passws_36 morf_verv_36 bnt_actws_36 klankgr_id_36 snelnoe_36 letters_36 ppvt_passws_50 morf_verv_50
2179 nepsy_passws_56 bnt_actws_56 klank_gr_weg_56 snelnoe_56 letters_56
2180 leesacc_wo_owo_811 leesacc_tekst_811 leesacc_otekst_811 leessne_wo_owo_811 leesvl_tekst_811 leesvl_otekst_811 leessne_wo_811 spel_wo_owo_811
2181 / format = upper diagonal .
2183 mean 64.44 1.74 15.30 11.50 269.03 5.37 441.90 8.57 36.59 33.99 11.68 14.74 18.67 6.70 71.57 2.28 70.45 51.82 18.82 34.57 11.68 45.63 12.94 35.08 92.60 79.28 2.78 61.71 29.44 9.46 13.17
2184 sd 74.93 1.36 5.51 4.17 159.26 2.76 128.77 3.50 6.20 6.50 3.55 8.37 5.90 3.01 24.81 4.09 24.44 18.55 2.90 6.46 3.01 14.06 7.69 4.36 7.10 17.57 1.27 25.68 11.75 3.36 4.13
2185 n 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150
2186 corr 1.00 .784 .397 .862 .692 .625 .490 .374 .406 .371 .260 .257 .306 .118 -.148 .072 .202 .234 .198 .241 .205 -.054 .246 .166 .143 .155 -.122 .144 -.010 .135 .241
2187 corr 1.00 .333 .751 .549 .553 .447 .313 .304 .377 .204 .249 .258 .193 -.158 .119 .150 .216 .127 .209 .242 .046 .233 .120 .155 .107 -.126 .147 -.009 .134 .208
2188 corr 1.00 .469 .433 .381 .442 .307 .462 .391 .378 .293 .369 .191 -.306 .238 .204 .215 .295 .285 .157 .069 .241 .029 .060 .054 -.043 .124 -.069 .054 .136
2189 corr 1.00 .708 .663 .509 .419 .434 .432 .267 .255 .342 .132 -.192 .142 .228 .203 .248 .260 .200 -.051 .254 .136 .156 .109 -.126 .172 -.004 .157 .268
2190 corr 1.00 .787 .710 .567 .402 .511 .274 .285 .332 .154 -.096 .247 .253 .235 .245 .257 .261 -.048 .243 .119 .194 .164 -.108 .184 .011 .157 .235
2191 corr 1.00 .590 .646 .449 .505 .313 .322 .405 .148 -.117 .152 .294 .322 .252 .321 .267 -.055 .255 .118 .178 .137 -.110 .182 .004 .146 .216
2192 corr 1.00 .548 .343 .619 .296 .260 .456 .149 -.098 .252 .279 .267 .342 .361 .186 -.066 .215 .107 .148 .059 -.114 .156 -.035 .095 .220
2193 corr 1.00 .406 .509 .397 .236 .416 .037 -.179 .192 .334 .293 .277 .367 .162 -.150 .306 .171 .307 .173 -.128 .255 .075 .224 .315
2194 corr 1.00 .410 .497 .560 .574 .240 -.301 .204 .508 .351 .457 .428 .242 -.117 .367 .136 .191 .191 -.102 .215 .053 .185 .273
2195 corr 1.00 .328 .258 .534 .236 -.202 .200 .333 .209 .352 .375 .302 -.119 .272 .062 .203 .042 -.092 .220 .020 .158 .227
2196 corr 1.00 .439 .488 .323 -.213 .287 .507 .427 .493 .522 .298 -.142 .371 .109 .215 .213 -.048 .228 .009 .133 .267
2197 corr 1.00 .437 .381 -.158 .153 .403 .430 .383 .379 .150 -.141 .303 .115 .131 .155 -.170 .206 .039 .193 .254
2198 corr 1.00 .247 -.143 .182 .521 .364 .415 .688 .304 -.185 .327 .188 .211 .202 -.111 .272 .122 .226 .301
2199 corr 1.00 -.150 .229 .296 .249 .329 .255 .210 -.036 .252 .141 .230 .112 -.195 .309 .135 .250 .195
2200 corr 1.00 -.132 -.204 -.162 -.284 -.166 -.189 .294 -.339 -.094 -.218 -.144 .153 -.246 -.128 -.192 -.239
2201 corr 1.00 .151 .132 .166 .195 .387 -.214 .476 .154 .187 .167 -.236 .410 .316 .370 .245
2202 corr 1.00 .388 .479 .591 .294 -.171 .351 .102 .245 .180 .003 .274 .059 .178 .236
2203 corr 1.00 .408 .437 .276 -.153 .353 .251 .318 .229 -.111 .263 .042 .203 .349
2204 corr 1.00 .467 .234 -.249 .382 .199 .313 .197 -.117 .263 .047 .215 .318
2205 corr 1.00 .368 -.199 .441 .198 .224 .197 -.099 .329 .105 .256 .322
2206 corr 1.00 -.211 .473 .233 .253 .268 -.198 .397 .229 .309 .277
2207 corr 1.00 -.310 -.217 -.312 -.203 .227 -.296 -.260 -.276 -.321
2208 corr 1.00 .368 .350 .311 -.313 .578 .338 .521 .458
2209 corr 1.00 .415 .580 -.588 .545 .497 .635 .683
2210 corr 1.00 .570 -.386 .494 .340 .538 .524
2211 corr 1.00 -.366 .427 .299 .498 .506
2212 corr 1.00 -.684 -.620 -.746 -.568
2213 corr 1.00 .759 .900 .555
2219 factor matrix in (cor = *)
2220 / analysis = cdi_actws_16 rdls_actws_16 cdi_actws_20 cdi_actws_26 rdls_actws_26 bnt_actws_36 bnt_actws_56
2222 / criteria = factors (1)
2224 / rotation = norotate
2225 / print = initial extraction .
2229 AT_CHECK([pspp -O format=csv correlation-matrix.sps], [0], [dnl
2230 Table: Communalities
2232 cdi_actws_16,1.000,.614
2233 rdls_actws_16,1.000,.660
2234 cdi_actws_20,1.000,.695
2235 cdi_actws_26,1.000,.650
2236 rdls_actws_26,1.000,.536
2237 bnt_actws_36,1.000,.443
2238 bnt_actws_56,1.000,.316
2240 Table: Total Variance Explained
2241 ,Initial Eigenvalues,,,Extraction Sums of Squared Loadings,,
2242 Component,Total,% of Variance,Cumulative %,Total,% of Variance,Cumulative %
2243 1,3.914,55.908,55.908,3.914,55.908,55.908
2244 2,1.320,18.852,74.760,,,
2245 3,.716,10.223,84.983,,,
2246 4,.422,6.030,91.012,,,
2247 5,.278,3.977,94.989,,,
2248 6,.216,3.088,98.077,,,
2249 7,.135,1.923,100.000,,,
2251 Table: Component Matrix
2266 AT_SETUP([FACTOR bad input])
2268 dnl Test for a crash
2269 AT_DATA([bad-input.sps], [dnl
2271 MATRIX DATA VARIABLES S1 ROWTYPE_ V1 TO V3 /SPLIT=S1.
2289 FACTOR MATRIX IN (CORR =!*)
2290 /PRINT = CORRELATION
2294 AT_CHECK([pspp -O format=csv bad-input.sps], [1], [ignore])
2299 AT_SETUP([FACTOR anti-image matrix])
2301 AT_DATA([anti-image-matrix.sps], [dnl
2304 variables = rowtype_ viq piq pa ran piatwr piatc
2306 / format = lower diagonal .
2308 mean 96.88 100.51 -1.73 -0.94 -2.52 -1.85
2309 sd 10.97 11.19 1.19 0.88 0.85 0.97
2313 corr 0.16 0.17 0.34 1.00
2314 corr 0.25 0.07 0.46 0.38 1.00
2315 corr 0.37 0.22 0.39 0.30 0.59 1.00
2318 factor matrix = in (cor = *)
2319 / analysis = viq piq pa ran piatwr piatc
2322 / rotation = norotate
2326 AT_CHECK([pspp -O format=csv anti-image-matrix.sps], [0], [dnl
2327 Table: Anti-Image Matrices
2328 ,,viq,piq,pa,ran,piatwr,piatc
2329 Anti-image Covariance,viq,.762,-.248,-.048,.008,-.031,-.143
2330 ,piq,-.248,.807,-.117,-.081,.108,-.071
2331 ,pa,-.048,-.117,.711,-.125,-.173,-.060
2332 ,ran,.008,-.081,-.125,.808,-.143,-.035
2333 ,piatwr,-.031,.108,-.173,-.143,.551,-.265
2334 ,piatc,-.143,-.071,-.060,-.035,-.265,.581
2335 Anti-image Correlation,viq,.741,-.316,-.066,.011,-.048,-.215
2336 ,piq,-.316,.624,-.154,-.100,.163,-.103
2337 ,pa,-.066,-.154,.811,-.165,-.277,-.093
2338 ,ran,.011,-.100,-.165,.825,-.214,-.051
2339 ,piatwr,-.048,.163,-.277,-.214,.675,-.469
2340 ,piatc,-.215,-.103,-.093,-.051,-.469,.729
2342 Table: Component Matrix
2345 piatc,.774,.122,-.368,.365,-.322
2346 piatwr,.754,.418,.442,.219,-.115
2347 pa,.707,.124,-.117,-.161,.256
2348 piq,.456,-.733,.122,-.289,-.377
2349 viq,.589,-.539,.033,.298,.457
2350 ran,.592,.262,-.069,-.638,.096
2356 AT_SETUP([FACTOR Kaiser-Meyer-Olkin])
2358 AT_DATA([kmo.sps], [dnl
2361 variables = rowtype_ viq piq pa ran piatwr piatc
2363 / format = lower diagonal .
2365 mean 96.88 100.51 -1.73 -0.94 -2.52 -1.85
2366 sd 10.97 11.19 1.19 0.88 0.85 0.97
2370 corr 0.16 0.17 0.34 1.00
2371 corr 0.25 0.07 0.46 0.38 1.00
2372 corr 0.37 0.22 0.39 0.30 0.59 1.00
2375 factor matrix = in (cor = *)
2376 / analysis = viq piq pa ran piatwr piatc
2378 / rotation = norotate
2382 AT_CHECK([pspp -O format=csv kmo.sps], [0], [dnl
2383 Table: KMO and Bartlett's Test
2384 Kaiser-Meyer-Olkin Measure of Sampling Adequacy,,.730
2385 Bartlett's Test of Sphericity,Approx. Chi-Square,602.673
2389 Table: Component Matrix
2392 viq,.589,-.539,.033,.298,.457
2393 piq,.456,-.733,.122,-.289,-.377
2394 pa,.707,.124,-.117,-.161,.256
2395 ran,.592,.262,-.069,-.638,.096
2396 piatwr,.754,.418,.442,.219,-.115
2397 piatc,.774,.122,-.368,.365,-.322