Codebase list pspp / 4fd4f13
Import Upstream version 0.7.9+git20120311 Andreas Tille 5 years ago
3 changed file(s) with 68 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
962962 dict_get_weight (dict), MV_ANY);
963963
964964 reader = casereader_clone (input);
965 reader = casereader_create_filter_missing (reader, v_variables, n_variables,
965 reader = casereader_create_filter_missing (reader, all_vars, n_all_vars,
966966 MV_ANY, NULL, NULL);
967
968
967969 for (; (c = casereader_read (reader)) != NULL; case_unref (c))
968970 {
969971 covariance_accumulate (cov, c);
735735 SELECT_FMT_ODT
736736 };
737737
738 /* GNU Hurd doesn't have PATH_MAX. Use a fallback.
739 Temporary directory names are usually not that long. */
740 #ifndef PATH_MAX
741 # define PATH_MAX 1024
742 #endif
743
738744 static void
739745 clipboard_get_cb (GtkClipboard *clipboard,
740746 GtkSelectionData *selection_data,
16131613 AT_CHECK([pspp -o pspp.csv regcrash.sps], [1], [ignore], [ignore])
16141614
16151615 AT_CLEANUP
1616
1617
1618
1619 AT_SETUP([REGRESSION missing dependent variable])
1620
1621 dnl Test for a bug where missing values in the dependent variable were not being
1622 dnl ignored like they should have been.
1623 AT_DATA([reg-mdv-ref.sps], [dnl
1624 data list notable list / v0 to v2.
1625 begin data
1626 0.65377128 7.735648 -23.97588
1627 -0.13087553 6.142625 -19.63854
1628 0.34880368 7.651430 -25.26557
1629 0.69249021 6.125125 -16.57090
1630 -0.07368178 8.245789 -25.80001
1631 -0.34404919 6.031540 -17.56743
1632 0.75981559 9.832291 -28.35977
1633 -0.46958313 5.343832 -16.79548
1634 -0.06108490 8.838262 -29.25689
1635 0.56154863 6.200189 -18.58219
1636 end data
1637 regression /variables=v0 v1
1638 /statistics defaults
1639 /dependent=v2
1640 /method=enter.
1641 ])
1642
1643 AT_CHECK([pspp -o pspp-ref.csv reg-mdv-ref.sps])
1644
1645 AT_DATA([reg-mdv.sps], [dnl
1646 data list notable list / v0 to v2.
1647 begin data
1648 0.65377128 7.735648 -23.97588
1649 -0.13087553 6.142625 -19.63854
1650 0.34880368 7.651430 -25.26557
1651 0.69249021 6.125125 -16.57090
1652 -0.07368178 8.245789 -25.80001
1653 -0.34404919 6.031540 -17.56743
1654 0.75981559 9.832291 -28.35977
1655 -0.46958313 5.343832 -16.79548
1656 -0.06108490 8.838262 -29.25689
1657 0.56154863 6.200189 -18.58219
1658 0.5 8 9
1659 end data
1660
1661 missing values v2 (9).
1662
1663 regression /variables=v0 v1
1664 /statistics defaults
1665 /dependent=v2
1666 /method=enter.
1667 ])
1668
1669 AT_CHECK([pspp -o pspp.csv reg-mdv.sps])
1670
1671 AT_CHECK([diff pspp.csv pspp-ref.csv])
1672
1673
1674 AT_CLEANUP