**************************************************** **Syntax producing the USA heritage time use files** **1975-1976 ** **written by Dr. Kimberly Fisher ** **Institute for Social and Economic Research ** **University of Essex, Wivenhoe Park Colchester ** **United Kingdom ** **10 April 2006, updates 20 May 2010, 5 Oct 2010 ** ****************************************************. *************************************** *Part 1 - create episode diary files * * for main respondents * ***************************************. ************ *base file * ************. *open base variables for both spouses and main respondents. GET FILE='C:\Users\Kimberly Fisher\Documents\MTUS-archive\USA\1975-76\new1975.sav' /keep v2 v11 v403 v432 v201 v210 v211 v212 v213 v214 v215 v216 v217 v218 v219 v220 v221 v222 v223 v224 v225 v226 v227 v228 v229 v230 v231 v232 v233 v234 v428 v7968 v10 v36 v39 v37 v41 v46 v60 v331 v336 v2541 v2861 v2865 v3390 v3393 v3396 v3402 v3404 v3422 v3430 v3449 v3650 v3651 v3652 v3653 v3654 v3655 v3656 v3657 v3658 v3659 v3660 v3661 v3662 v3663 v3664 v3665 v3666 v3667 v3834 v3940 v4903 v4924 v5057 v5661 v5662 v5663 v5664 v5665 v5666 v5667 v5668 v5669 v5670 v5671 v5672 v5673 v5674 v5675 v5676 v5677 v5678 v5845 v5969 v6940 v6941 v6943 v6964 v6973 v7097 v7099 v7103 v433 v434 v435 v436 v437 v438 v439 v440 v441 v442 v443 v444 v445 v446 v447 v448 v449 v450 v451 v452 v453 v454 v455 v456 v457 v458 v459 v460 v461 v462 v463 v464 v465 v466 v467 v468 v469 v470 v471 v472 v473 v474 v475 v476 v477 v478 v479 v480 v481 v482 v483 v484 v485 v486 v487 v488 v489 v490 v491 v492 v493 v494 v495 v496 v497 v498 v499 v500 v501 v502 v503 v504 v505 v506 v507 v508 v509 v510 v511 v512 v513 v514 v515 v516 v517 v518 v519 v520 v521 v522 v523 v524 v525 v526 v527 v528 v529 v530 v531 v532 v533 v534 v535 v536 v537 v538 v539 v540 v541 v542 v543 v544 v545 v546 v547 v548 v549 v550 v551 v552 v553 v554 v555 v556 v557 v558 v559 v560 v561 v562 v563 v564 v565 v566 v567 v568 v569 v570 v571 v572 v573 v574 v575 v576 v577 v578 v579 v580 v581 v582 v583 v584 v585 v586 v587 v588 v589 v590 v591 v592 v593 v594 v595 v596 v597 v598 v599 v600 v601 v602 v603 v604 v605 v606 v607 v608 v609 v610 v611 v612 v613 v614 v615 v616 v617 v618 v619 v620 v621 v622 v623 v624 v625 v626 v627 v628 v629 v630 v631 v632 v633 v634 v635 v636 v637 v638 v639 v640 v641 v642 v643 v644 v645 v646 v647 v648 v649 v650 v651 v652 v653 v654 v655 v656 v657 v658 v659 v660 v661 v662 v663 v664 v665 v666 v667 v668 v669 v670 v671 v672 v673 v674 v675 v676 v677 v678 v679 v680 v681 v682 v683 v684 v685 v686 v687 v688 v689 v690 v691 v692 v693 v694 v695 v696 v697 v698 v699 v700 v701 v702 v703 v704 v705 v706 v707 v708 v709 v710 v711 v712 v713 v714 v715 v716 v717 v718 v719 v720 v721 v722 v723 v724 v725 v726 v727 v728 v729 v730 v731 v732 v733 v734 v735 v736 v737 v738 v739 v740 v741 v742 v743 v744 v745 v746 v747 v748 v749 v750 v751 v752 v753 v754 v755 v756 v757 v758 v759 v760 v761 v762 v763 v764 v765 v766 v767 v768 v769 v770 v771 v772 v773 v774 v775 v776 v777 v778 v779 v780 v781 v782 v783 v784 v785 v786 v787 v788 v789 v790 v791 v792 v793 v794 v795 v796 v797 v798 v799 v800 v801 v802 v803 v804 v805 v806 v807 v808 v809 v810 v811 v812 v813 v814 v815 v816 v817 v818 v819 v820 v821 v822 v823 v824 v825 v826 v827 v828 v829 v830 v831 v832 v833 v834 v835 v836 v837 v838 v839 v840 v841 v842 v843 v844 v845 v846 v847 v848 v849 v850 v851 v852 v853 v854 v855 v856 v857 v858 v859 v860 v861 v862 v863 v864 v865 v866 v867 v868 v869 v870 v871 v872 v873 v874 v875 v876 v877 v878 v879 v880 v881 v882 v883 v884 v885 v886 v887 v888 v889 v890 v891 v892 v893 v894 v895 v896 v897 v898 v899 v900 v901 v902 v903 v904 v905 v906 v907 v908 v909 v910 v911 v912 v913 v914 v915 v916 v917 v918 v919 v920 v921 v922 v923 v924 v925 v926 v927 v928 v929 v930 v931 v932 v933 v934 v935 v936 v937 v938 v939 v940 v941 v942 v943 v944 v945 v946 v947 v948 v949 v950 v951 v952 v953 v954 v955 v956 v957 v958 v959 v960 v961 v962 v963 v964 v965 v966 v967 v968 v969 v970 v971 v972 v973 v974 v975 v976 v977 v978 v979 v980 v981 v982 v983 v984 v985 v986 v987 v988 v989 v990 v991 v992 v993 v994 v995 v996 v997 v998 v999 v1000 v1001 v1002 v1003 v1004 v1005 v1006 v1007 v1008 v1009 v1010 v1011 v1012 v1013 v1014 v1015 v1016 v1017 v1018 v1019 v1020 v1021 v1022 v1023 v1024 v1025 v1026 v1027 v1028 v1029 v1030 v1031 v1032 v1033 v1034 v1035 v1036 v1037 v1038 v1039 v1040 v1041 v1042 v1043 v1044 v1045 v1046 v1047 v1048 v1049 v1050 v1051 v1052 v1053 v1054 v1055 v1056 v1057 v1058 v1059 v1060 v1061 v1062 v1063 v1064 v1065 v1066 v1067 v1068 v1069 v1070 v1071 v1072 v1073 v1074 v1075 v1076 v1077 v1078 v1079 v1080 v1081 v1082 v1083 v1084 v1085 v1086 v1087 v1088 v1089 v1090 v1091 v1092 v1093 v1181 v1182 v1183 v1184 v1185 v1186 v1187 v1188 v1189 v1190 v1191 v1192 v1193 v1194 v1195 v1196 v1197 v1198 v1199 v1200 v1201 v1202 v1203 v1204 v1205 v1206 v1207 v1208 v1209 v1210 v1211 v1212 v1213 v1214 v1215 v1216 v1217 v1218 v1219 v1220 v1221 v1222 v1223 v1224 v1225 v1226 v1227 v1228 v1229 v1230 v1231 v1232 v1233 v1234 v1235 v1236 v1237 v1238 v1239 v1240 v1241 v1242 v1243 v1244 v1245 v1246 v1247 v1248 v1249 v1250 v1251 v1252 v1253 v1254 v1255 v1256 v1257 v1258 v1259 v1260 v1261 v1262 v1263 v1264 v1265 v1266 v1267 v1268 v1269 v1270 v1271 v1272 v1273 v1274 v1275 v1276 v1277 v1278 v1279 v1280 v1281 v1282 v1283 v1284 v1285 v1286 v1287 v1288 v1289 v1290 v1291 v1292 v1293 v1294 v1295 v1296 v1297 v1298 v1299 v1300 v1301 v1302 v1303 v1304 v1305 v1306 v1307 v1308 v1309 v1310 v1311 v1312 v1313 v1314 v1315 v1316 v1317 v1318 v1319 v1320 v1321 v1322 v1323 v1324 v1325 v1326 v1327 v1328 v1329 v1330 v1331 v1332 v1333 v1334 v1335 v1336 v1337 v1338 v1339 v1340 v1341 v1342 v1343 v1344 v1345 v1346 v1347 v1348 v1349 v1350 v1351 v1352 v1353 v1354 v1355 v1356 v1357 v1358 v1359 v1360 v1361 v1362 v1363 v1364 v1365 v1366 v1367 v1368 v1369 v1370 v1371 v1372 v1373 v1374 v1375 v1376 v1377 v1378 v1379 v1380 v1381 v1382 v1383 v1384 v1385 v1386 v1387 v1388 v1389 v1390 v1391 v1392 v1393 v1394 v1395 v1396 v1397 v1398 v1399 v1400 v1401 v1402 v1403 v1404 v1405 v1406 v1407 v1408 v1409 v1410 v1411 v1412 v1413 v1414 v1415 v1416 v1417 v1418 v1419 v1420 v1421 v1422 v1423 v1424 v1425 v1426 v1427 v1428 v1429 v1430 v1431 v1432 v1433 v1434 v1435 v1436 v1437 v1438 v1439 v1440 v1441 v1442 v1443 v1444 v1445 v1446 v1447 v1448 v1449 v1450 v1451 v1452 v1453 v1454 v1455 v1456 v1457 v1458 v1459 v1460 v1461 v1462 v1463 v1464 v1465 v1466 v1467 v1468 v1469 v1470 v1471 v1472 v1473 v1474 v1475 v1476 v1477 v1478 v1479 v1480 v1481 v1482 v1483 v1484 v1485 v1486 v1487 v1488 v1489 v1490 v1491 v1492 v1493 v1494 v1495 v1496 v1497 v1498 v1499 v1500 v1501 v1502 v1503 v1504 v1505 v1506 v1507 v1508 v1509 v1510 v1511 v1512 v1513 v1514 v1515 v1516 v1517 v1518 v1519 v1520 v1521 v1522 v1523 v1524 v1525 v1526 v1527 v1528 v1529 v1530 v1531 v1532 v1533 v1534 v1535 v1536 v1537 v1538 v1539 v1540 v1541 v1542 v1543 v1544 v1545 v1546 v1547 v1548 v1549 v1550 v1551 v1552 v1553 v1554 v1555 v1556 v1557 v1558 v1559 v1560 v1561 v1562 v1563 v1564 v1565 v1566 v1567 v1568 v1569 v1570 v1571 v1572 v1573 v1574 v1575 v1576 v1577 v1578 v1579 v1580 v1581 v1582 v1583 v1584 v1585 v1586 v1587 v1588 v1589 v1590 v1591 v1592 v1593 v1594 v1595 v1596 v1597 v1685 v1686 v1687 v1688 v1689 v1690 v1691 v1692 v1693 v1694 v1695 v1696 v1697 v1698 v1699 v1700 v1701 v1702 v1703 v1704 v1705 v1706 v1707 v1708 v1709 v1710 v1711 v1712 v1713 v1714 v1715 v1716 v1717 v1718 v1719 v1720 v1721 v1722 v1723 v1724 v1725 v1726 v1727 v1728 v1729 v1730 v1731 v1732 v1733 v1734 v1735 v1736 v1737 v1738 v1739 v1740 v1741 v1742 v1743 v1744 v1745 v1746 v1747 v1748 v1749 v1750 v1751 v1752 v1753 v1754 v1755 v1756 v1757 v1758 v1759 v1760 v1761 v1762 v1763 v1764 v1765 v1766 v1767 v1768 v1769 v1770 v1771 v1772 v1773 v1774 v1775 v1776 v1777 v1778 v1779 v1780 v1781 v1782 v1783 v1784 v1785 v1786 v1787 v1788 v1789 v1790 v1791 v1792 v1793 v1794 v1795 v1796 v1797 v1798 v1799 v1800 v1801 v1802 v1803 v1804 v1805 v1806 v1807 v1808 v1809 v1810 v1811 v1812 v1813 v1814 v1815 v1816 v1817 v1818 v1819 v1820 v1821 v1822 v1823 v1824 v1825 v1826 v1827 v1828 v1829 v1830 v1831 v1832 v1833 v1834 v1835 v1836 v1837 v1838 v1839 v1840 v1841 v1842 v1843 v1844 v1845 v1846 v1847 v1848 v1849 v1850 v1851 v1852 v1853 v1854 v1855 v1856 v1857 v1858 v1859 v1860 v1861 v1862 v1863 v1864 v1865 v1866 v1867 v1868 v1869 v1870 v1871 v1872 v1873 v1874 v1875 v1876 v1877 v1878 v1879 v1880 v1881 v1882 v1883 v1884 v1885 v1886 v1887 v1888 v1889 v1890 v1891 v1892 v1893 v1894 v1895 v1896 v1897 v1898 v1899 v1900 v1901 v1902 v1903 v1904 v1905 v1906 v1907 v1908 v1909 v1910 v1911 v1912 v1913 v1914 v1915 v1916 v1917 v1918 v1919 v1920 v1921 v1922 v1923 v1924 v1925 v1926 v1927 v1928 v1929 v1930 v1931 v1932 v1933 v1934 v1935 v1936 v1937 v1938 v1939 v1940 v1941 v1942 v1943 v1944 v1945 v1946 v1947 v1948 v1949 v1950 v1951 v1952 v1953 v1954 v1955 v1956 v1957 v1958 v1959 v1960 v1961 v1962 v1963 v1964 v1965 v1966 v1967 v1968 v1969 v1970 v1971 v1972 v1973 v1974 v1975 v1976 v1977 v1978 v1979 v1980 v1981 v1982 v1983 v1984 v1985 v1986 v1987 v1988 v1989 v1990 v1991 v1992 v1993 v1994 v1995 v1996 v1997 v1998 v1999 v2000 v2001 v2002 v2003 v2004 v2005 v2006 v2007 v2008 v2009 v2010 v2011 v2012 v2013 v2014 v2015 v2016 v2017 v2018 v2019 v2020 v2021 v2022 v2023 v2024 v2025 v2026 v2027 v2028 v2029 v2030 v2031 v2032 v2033 v2034 v2035 v2036 v2037 v2038 v2039 v2040 v2041 v2042 v2043 v2044 v2045 v2046 v2047 v2048 v2049 v2050 v2051 v2052 v2053 v2054 v2055 v2056 v2057 v2058 v2059 v2060 v2061 v2062 v2063 v2064 v2065 v2066 v2067 v2068 v2069 v2070 v2071 v2072 v2073 v2074 v2075 v2076 v2077 v2078 v2079 v2080 v2081 v2082 v2083 v2084 v2085 v2086 v2087 v2088 v2089 v2090 v2091 v2092 v2093 v2094 v2095 v2096 v2097 v2098 v2099 v2100 v2101 v2102 v2103 v2104 v2105 v2106 v2107 v2108 v2109 v2110 v2111 v2112 v2113 v2114 v2115 v2116 v2117 v2118 v2119 v2120 v2121 v2122 v2123 v2124 v2125 v2126 v2127 v2128 v2129 v2130 v2131 v2132 v2133 v2134 v2135 v2136 v2137 v2138 v2139 v2140 v2141 v2142 v2143 v2144 v2145 v2146 v2147 v2148 v2149 v2150 v2151 v2152 v2153 v2154 v2155 v2156 v2157 v2158 v2159 v2160 v2161 v2162 v2163 v2164 v2165 v2166 v2167 v2168 v2169 v2170 v2171 v2172 v2173 v2174 v2175 v2176 v2177 v2178 v2179 v2180 v2181 v2182 v2183 v2184 v2185 v2186 v2187 v2188 v2189 v2190 v2191 v2192 v2193 v2194 v2195 v2196 v2197 v2198 v2199 v2200 v2201 v2202 v2203 v2204 v2205 v2206 v2207 v2208 v2209 v2210 v2211 v2212 v2213 v2214 v2215 v2216 v2217 v2218 v2219 v2220 v2221 v2222 v2223 v2224 v2225 v2226 v2227 v2228 v2229 v2230 v2231 v2232 v2233 v2234 v2235 v2236 v2237 v2238 v2239 v2240 v2241 v2242 v2243 v2244 v2245 v2246 v2247 v2248 v2249 v2250 v2251 v2252 v2253 v2254 v2255 v2256 v2257 v2258 v2259 v2260 v2261 v2262 v2263 v2264 v2265 v2266 v2267 v2268 v2269 v2270 v2271 v2272 v2273 v2274 v2275 v2276 v2277 v2278 v2279 v2280 v2281 v2282 v2283 v2284 v2285 v2286 v2287 v2288 v2289 v2290 v2291 v2292 v2293 v2294 v2295 v2296 v2297 v2298 v2299 v2300 v2301 v2302 v2303 v2304 v2305 v2306 v2307 v2308 v2309 v2310 v2311 v2312 v2313 v2314 v2315 v2316 v2317 v2318 v2319 v2320 v2321 v2322 v2323 v2324 v2325 v2326 v2327 v2328 v2329 v2330 v2331 v2332 v2333 v2334 v2335 v2423 v2424 v2425 v2888 v2889 v2890 v2891 v2892 v2893 v2894 v2895 v2896 v2897 v2898 v2899 v2900 v2901 v2902 v2903 v2904 v2905 v2906 v2907 v2908 v2909 v2910 v2911 v2912 v2913 v2914 v2915 v2916 v2917 v2918 v2919 v2920 v2921 v2922 v2923 v2924 v2925 v2926 v2927 v2928 v2929 v2930 v2931 v2932 v2933 v2934 v2935 v2936 v2937 v2938 v2939 v2940 v2941 v2942 v2943 v2944 v2945 v2946 v2947 v2948 v2949 v2950 v2951 v2952 v2953 v2954 v2955 v2956 v2957 v2958 v2959 v2960 v2961 v2962 v2963 v2964 v2965 v2966 v2967 v2968 v2969 v2970 v2971 v2972 v2973 v2974 v2975 v2976 v2977 v2978 v2979 v2980 v2981 v2982 v2983 v2984 v2985 v2986 v2987 v2988 v2989 v2990 v2991 v2992 v2993 v2994 v2995 v2996 v2997 v2998 v2999 v3000 v3001 v3002 v3003 v3004 v3005 v3006 v3007 v3008 v3009 v3010 v3011 v3012 v3013 v3014 v3015 v3016 v3017 v3018 v3019 v3020 v3021 v3022 v3023 v3024 v3025 v3026 v3027 v3028 v3029 v3030 v3031 v3032 v3033 v3034 v3035 v3036 v3037 v3038 v3039 v3040 v3041 v3042 v3043 v3044 v3045 v3046 v3047 v3048 v3049 v3050 v3051 v3052 v3053 v3054 v3055 v3056 v3057 v3058 v3059 v3060 v3061 v3062 v3063 v3064 v3065 v3066 v3067 v3068 v3069 v3070 v3071 v3072 v3073 v3074 v3075 v3076 v3077 v3078 v3079 v3080 v3081 v3082 v3083 v3084 v3085 v3086 v3087 v3088 v3089 v3090 v3091 v3092 v3093 v3094 v3095 v3096 v3097 v3098 v3099 v3100 v3101 v3102 v3103 v3104 v3105 v3106 v3107 v3108 v3109 v3110 v3111 v3112 v3113 v3114 v3115 v3116 v3117 v3118 v3119 v3120 v3121 v3122 v3123 v3124 v3125 v3126 v3127 v3128 v3129 v3130 v3131 v3132 v3133 v3134 v3135 v3136 v3137 v3138 v3139 v3140 v3141 v3142 v3143 v3144 v3145 v3146 v3147 v3148 v3149 v3150 v3151 v3152 v3153 v3154 v3155 v3156 v3157 v3158 v3159 v3160 v3161 v3162 v3163 v3164 v3165 v3166 v3167 v3168 v3169 v3170 v3171 v3172 v3173 v3174 v3175 v3176 v3177 v3178 v3179 v3180 v3181 v3182 v3183 v3184 v3185 v3186 v3187 v3188 v3189 v3190 v3191 v3192 v3193 v3194 v3195 v3196 v3197 v3198 v3199 v3200 v3201 v3202 v3203 v3204 v3205 v3206 v3207 v3208 v3209 v3210 v3211 v3212 v3213 v3214 v3215 v3216 v3217 v3218 v3219 v3220 v3221 v3222 v3223 v3224 v3225 v3226 v3227 v3228 v3229 v3230 v3231 v3232 v3233 v3234 v3235 v3236 v3237 v3238 v3239 v3240 v3241 v3242 v3243 v3244 v3245 v3246 v3247 v3248 v3249 v3250 v3251 v3252 v3253 v3254 v3255 v3256 v3257 v3258 v3259 v3260 v3261 v3262 v3263 v3264 v3265 v3266 v3267 v3268 v3269 v3270 v3271 v3272 v3273 v3274 v3275 v3276 v3277 v3278 v3279 v3280 v3281 v3282 v3283 v3284 v3285 v3286 v3287 v3288 v3289 v3290 v3291 v3292 v3293 v3294 v3295 v3296 v3297 v3298 v3299 v3300 v3301 v3389 v3390 v3433 v3434 v3435 v3645 v3647 v3648 v3649 v4011 v4012 v4013 v4014 v4015 v4016 v4017 v4018 v4019 v4020 v4021 v4022 v4023 v4024 v4025 v4026 v4027 v4028 v4029 v4030 v4031 v4032 v4033 v4034 v4035 v4036 v4037 v4038 v4039 v4040 v4041 v4042 v4043 v4044 v4045 v4046 v4047 v4048 v4049 v4050 v4051 v4052 v4053 v4054 v4055 v4056 v4057 v4058 v4059 v4060 v4061 v4062 v4063 v4064 v4065 v4066 v4067 v4068 v4069 v4070 v4071 v4072 v4073 v4074 v4075 v4076 v4077 v4078 v4079 v4080 v4081 v4082 v4083 v4084 v4085 v4086 v4087 v4088 v4089 v4090 v4091 v4092 v4093 v4094 v4095 v4096 v4097 v4098 v4099 v4100 v4101 v4102 v4103 v4104 v4105 v4106 v4107 v4108 v4109 v4110 v4111 v4112 v4113 v4114 v4115 v4116 v4117 v4118 v4119 v4120 v4121 v4122 v4123 v4124 v4125 v4126 v4127 v4128 v4129 v4130 v4131 v4132 v4133 v4134 v4135 v4136 v4137 v4138 v4139 v4140 v4141 v4142 v4143 v4144 v4145 v4146 v4147 v4148 v4149 v4150 v4151 v4152 v4153 v4154 v4155 v4156 v4157 v4158 v4159 v4160 v4161 v4162 v4163 v4164 v4165 v4166 v4167 v4168 v4169 v4170 v4171 v4172 v4173 v4174 v4175 v4176 v4177 v4178 v4179 v4180 v4181 v4182 v4183 v4184 v4185 v4186 v4187 v4188 v4189 v4190 v4191 v4192 v4193 v4194 v4195 v4196 v4197 v4198 v4199 v4200 v4201 v4202 v4203 v4204 v4205 v4206 v4207 v4208 v4209 v4210 v4211 v4212 v4213 v4214 v4215 v4216 v4217 v4218 v4219 v4220 v4221 v4222 v4223 v4224 v4225 v4226 v4227 v4228 v4229 v4230 v4231 v4232 v4233 v4234 v4235 v4236 v4237 v4238 v4239 v4240 v4241 v4242 v4243 v4244 v4245 v4246 v4247 v4248 v4249 v4250 v4251 v4252 v4253 v4254 v4255 v4256 v4257 v4258 v4259 v4260 v4261 v4262 v4263 v4264 v4265 v4266 v4267 v4268 v4269 v4270 v4271 v4272 v4273 v4274 v4275 v4276 v4277 v4278 v4279 v4280 v4281 v4282 v4283 v4284 v4285 v4286 v4287 v4288 v4289 v4290 v4291 v4292 v4293 v4294 v4295 v4296 v4297 v4298 v4299 v4300 v4301 v4302 v4303 v4304 v4305 v4306 v4307 v4308 v4309 v4310 v4311 v4312 v4313 v4314 v4315 v4316 v4317 v4318 v4319 v4320 v4321 v4322 v4323 v4324 v4325 v4326 v4327 v4328 v4329 v4330 v4331 v4332 v4333 v4334 v4335 v4336 v4337 v4338 v4339 v4340 v4341 v4342 v4343 v4344 v4345 v4346 v4347 v4348 v4349 v4350 v4351 v4352 v4353 v4354 v4355 v4356 v4357 v4358 v4359 v4360 v4361 v4362 v4363 v4364 v4365 v4366 v4367 v4368 v4369 v4370 v4371 v4372 v4373 v4374 v4375 v4376 v4377 v4378 v4379 v4380 v4381 v4382 v4383 v4384 v4385 v4386 v4387 v4388 v4389 v4390 v4391 v4392 v4393 v4394 v4395 v4396 v4397 v4398 v4399 v4400 v4401 v4402 v4403 v4404 v4405 v4406 v4407 v4408 v4409 v4410 v4411 v4412 v4413 v4414 v4415 v4416 v4417 v4418 v4419 v4420 v4421 v4422 v4423 v4424 v4425 v4426 v4427 v4428 v4429 v4430 v4431 v4432 v4433 v4434 v4435 v4436 v4437 v4438 v4439 v4440 v4441 v4442 v4443 v4444 v4445 v4446 v4447 v4448 v4449 v4450 v4451 v4452 v4453 v4454 v4455 v4456 v4457 v4458 v4459 v4460 v4461 v4462 v4463 v4464 v4465 v4466 v4467 v4468 v4469 v4470 v4471 v4472 v4473 v4474 v4475 v4476 v4477 v4478 v4479 v4480 v4481 v4482 v4483 v4484 v4485 v4486 v4487 v4488 v4489 v4490 v4491 v4492 v4493 v4494 v4495 v4496 v4497 v4498 v4499 v4500 v4501 v4502 v4503 v4504 v4505 v4506 v4507 v4508 v4509 v4510 v4511 v4512 v4513 v4514 v4515 v4516 v4517 v4518 v4519 v4520 v4521 v4522 v4523 v4524 v4525 v4526 v4527 v4528 v4529 v4530 v4531 v4532 v4533 v4534 v4535 v4536 v4537 v4538 v4539 v4540 v4541 v4542 v4543 v4544 v4545 v4546 v4547 v4548 v4549 v4550 v4551 v4552 v4553 v4554 v4555 v4556 v4557 v4558 v4559 v4560 v4561 v4562 v4563 v4564 v4565 v4566 v4567 v4568 v4569 v4570 v4571 v4572 v4573 v4574 v4575 v4576 v4577 v4578 v4579 v4580 v4581 v4582 v4583 v4584 v4585 v4586 v4587 v4588 v4589 v4590 v4591 v4592 v4593 v4594 v4595 v4596 v4597 v4598 v4599 v4600 v4601 v4602 v4603 v4604 v4605 v4606 v4607 v4608 v4609 v4610 v4611 v4612 v4613 v4614 v4615 v4616 v4617 v4618 v4619 v4620 v4621 v4622 v4623 v4624 v4625 v4626 v4627 v4628 v4629 v4630 v4631 v4632 v4633 v4634 v4635 v4636 v4637 v4638 v4639 v4640 v4641 v4642 v4643 v4644 v4645 v4646 v4647 v4648 v4649 v4650 v4651 v4652 v4653 v4741 v4742 v4743 v4744 v4745 v4746 v4747 v4748 v4897 v4898 v4900 v4901 v4904 v4912 v4011 v3648 v3647 v5137 v5138 v5139 v5140 v5141 v5142 v5143 v5144 v5145 v5146 v5147 v5148 v5149 v5150 v5151 v5152 v5153 v5154 v5155 v5156 v5157 v5158 v5159 v5160 v5161 v5162 v5163 v5164 v5165 v5166 v5167 v5168 v5169 v5170 v5171 v5172 v5173 v5174 v5175 v5176 v5177 v5178 v5179 v5180 v5181 v5182 v5183 v5184 v5185 v5186 v5187 v5188 v5189 v5190 v5191 v5192 v5193 v5194 v5195 v5196 v5197 v5198 v5199 v5200 v5201 v5202 v5203 v5204 v5205 v5206 v5207 v5208 v5209 v5210 v5211 v5212 v5213 v5214 v5215 v5216 v5217 v5218 v5219 v5220 v5221 v5222 v5223 v5224 v5225 v5226 v5227 v5228 v5229 v5230 v5231 v5232 v5233 v5234 v5235 v5236 v5237 v5238 v5239 v5240 v5241 v5242 v5243 v5244 v5245 v5246 v5247 v5248 v5249 v5250 v5251 v5252 v5253 v5254 v5255 v5256 v5257 v5258 v5259 v5260 v5261 v5262 v5263 v5264 v5265 v5266 v5267 v5268 v5269 v5270 v5271 v5272 v5273 v5274 v5275 v5276 v5277 v5278 v5279 v5280 v5281 v5282 v5283 v5284 v5285 v5286 v5287 v5288 v5289 v5290 v5291 v5292 v5293 v5294 v5295 v5296 v5297 v5298 v5299 v5300 v5301 v5302 v5303 v5304 v5305 v5306 v5307 v5308 v5309 v5310 v5311 v5312 v5313 v5314 v5315 v5316 v5317 v5318 v5319 v5320 v5321 v5322 v5323 v5324 v5325 v5326 v5327 v5328 v5329 v5330 v5331 v5332 v5333 v5334 v5335 v5336 v5337 v5338 v5339 v5340 v5341 v5342 v5343 v5344 v5345 v5346 v5347 v5348 v5349 v5350 v5351 v5352 v5353 v5354 v5355 v5356 v5357 v5358 v5359 v5360 v5361 v5362 v5363 v5364 v5365 v5366 v5367 v5368 v5369 v5370 v5371 v5372 v5373 v5374 v5375 v5376 v5377 v5378 v5379 v5380 v5381 v5382 v5383 v5384 v5385 v5386 v5387 v5388 v5389 v5390 v5391 v5392 v5393 v5394 v5395 v5396 v5397 v5398 v5399 v5400 v5401 v5402 v5403 v5404 v5405 v5406 v5407 v5408 v5409 v5410 v5411 v5412 v5413 v5414 v5415 v5416 v5417 v5418 v5419 v5420 v5421 v5422 v5423 v5424 v5425 v5426 v5427 v5428 v5429 v5430 v5431 v5432 v5433 v5434 v5435 v5436 v5437 v5438 v5439 v5440 v5441 v5442 v5443 v5444 v5445 v5446 v5447 v5448 v5449 v5450 v5451 v5452 v5453 v5454 v5455 v5456 v5457 v5458 v5459 v5460 v5461 v5462 v5463 v5464 v5465 v5466 v5467 v5468 v5469 v5470 v5471 v5472 v5473 v5474 v5475 v5476 v5477 v5478 v5479 v5480 v5481 v5482 v5483 v5484 v5485 v5486 v5487 v5488 v5489 v5490 v5491 v5492 v5493 v5494 v5495 v5496 v5497 v5498 v5499 v5500 v5501 v5502 v5503 v5504 v5505 v5506 v5507 v5508 v5509 v5510 v5511 v5512 v5513 v5514 v5515 v5516 v5517 v5518 v5519 v5520 v5521 v5522 v5523 v5524 v5525 v5526 v5527 v5528 v5529 v5530 v5531 v5532 v5533 v5534 v5535 v5536 v5537 v5538 v5539 v5627 v5628 v5629 v5630 v5631 v5632 v5633 v5656 v5658 v5659 v5660 v6028 v6029 v6030 v6031 v6032 v6033 v6034 v6035 v6036 v6037 v6038 v6039 v6040 v6041 v6042 v6043 v6044 v6045 v6046 v6047 v6048 v6049 v6050 v6051 v6052 v6053 v6054 v6055 v6056 v6057 v6058 v6059 v6060 v6061 v6062 v6063 v6064 v6065 v6066 v6067 v6068 v6069 v6070 v6071 v6072 v6073 v6074 v6075 v6076 v6077 v6078 v6079 v6080 v6081 v6082 v6083 v6084 v6085 v6086 v6087 v6088 v6089 v6090 v6091 v6092 v6093 v6094 v6095 v6096 v6097 v6098 v6099 v6100 v6101 v6102 v6103 v6104 v6105 v6106 v6107 v6108 v6109 v6110 v6111 v6112 v6113 v6114 v6115 v6116 v6117 v6118 v6119 v6120 v6121 v6122 v6123 v6124 v6125 v6126 v6127 v6128 v6129 v6130 v6131 v6132 v6133 v6134 v6135 v6136 v6137 v6138 v6139 v6140 v6141 v6142 v6143 v6144 v6145 v6146 v6147 v6148 v6149 v6150 v6151 v6152 v6153 v6154 v6155 v6156 v6157 v6158 v6159 v6160 v6161 v6162 v6163 v6164 v6165 v6166 v6167 v6168 v6169 v6170 v6171 v6172 v6173 v6174 v6175 v6176 v6177 v6178 v6179 v6180 v6181 v6182 v6183 v6184 v6185 v6186 v6187 v6188 v6189 v6190 v6191 v6192 v6193 v6194 v6195 v6196 v6197 v6198 v6199 v6200 v6201 v6202 v6203 v6204 v6205 v6206 v6207 v6208 v6209 v6210 v6211 v6212 v6213 v6214 v6215 v6216 v6217 v6218 v6219 v6220 v6221 v6222 v6223 v6224 v6225 v6226 v6227 v6228 v6229 v6230 v6231 v6232 v6233 v6234 v6235 v6236 v6237 v6238 v6239 v6240 v6241 v6242 v6243 v6244 v6245 v6246 v6247 v6248 v6249 v6250 v6251 v6252 v6253 v6254 v6255 v6256 v6257 v6258 v6259 v6260 v6261 v6262 v6263 v6264 v6265 v6266 v6267 v6268 v6269 v6270 v6271 v6272 v6273 v6274 v6275 v6276 v6277 v6278 v6279 v6280 v6281 v6282 v6283 v6284 v6285 v6286 v6287 v6288 v6289 v6290 v6291 v6292 v6293 v6294 v6295 v6296 v6297 v6298 v6299 v6300 v6301 v6302 v6303 v6304 v6305 v6306 v6307 v6308 v6309 v6310 v6311 v6312 v6313 v6314 v6315 v6316 v6317 v6318 v6319 v6320 v6321 v6322 v6323 v6324 v6325 v6326 v6327 v6328 v6329 v6330 v6331 v6332 v6333 v6334 v6335 v6336 v6337 v6338 v6339 v6340 v6341 v6342 v6343 v6344 v6345 v6346 v6347 v6348 v6349 v6350 v6351 v6352 v6353 v6354 v6355 v6356 v6357 v6358 v6359 v6360 v6361 v6362 v6363 v6364 v6365 v6366 v6367 v6368 v6369 v6370 v6371 v6372 v6373 v6374 v6375 v6376 v6377 v6378 v6379 v6380 v6381 v6382 v6383 v6384 v6385 v6386 v6387 v6388 v6389 v6390 v6391 v6392 v6393 v6394 v6395 v6396 v6397 v6398 v6399 v6400 v6401 v6402 v6403 v6404 v6405 v6406 v6407 v6408 v6409 v6410 v6411 v6412 v6413 v6414 v6415 v6416 v6417 v6418 v6419 v6420 v6421 v6422 v6423 v6424 v6425 v6426 v6427 v6428 v6429 v6430 v6431 v6432 v6433 v6434 v6435 v6436 v6437 v6438 v6439 v6440 v6441 v6442 v6443 v6444 v6445 v6446 v6447 v6448 v6449 v6450 v6451 v6452 v6453 v6454 v6455 v6456 v6457 v6458 v6459 v6460 v6461 v6462 v6463 v6464 v6465 v6466 v6467 v6468 v6469 v6470 v6471 v6472 v6473 v6474 v6475 v6476 v6477 v6478 v6479 v6480 v6481 v6482 v6483 v6484 v6485 v6486 v6487 v6488 v6489 v6490 v6491 v6492 v6493 v6494 v6495 v6496 v6497 v6498 v6499 v6500 v6501 v6502 v6503 v6504 v6505 v6506 v6507 v6508 v6509 v6510 v6511 v6512 v6513 v6514 v6515 v6516 v6517 v6518 v6519 v6520 v6521 v6522 v6523 v6524 v6525 v6526 v6527 v6528 v6529 v6530 v6531 v6532 v6533 v6534 v6535 v6536 v6537 v6538 v6539 v6540 v6541 v6542 v6543 v6544 v6545 v6546 v6547 v6548 v6549 v6550 v6551 v6552 v6553 v6554 v6555 v6556 v6557 v6558 v6559 v6560 v6561 v6562 v6563 v6564 v6565 v6566 v6567 v6568 v6569 v6570 v6571 v6572 v6573 v6574 v6575 v6576 v6577 v6578 v6579 v6580 v6581 v6582 v6583 v6584 v6585 v6586 v6587 v6588 v6589 v6590 v6591 v6592 v6593 v6594 v6595 v6596 v6597 v6598 v6599 v6600 v6601 v6602 v6603 v6604 v6605 v6606 v6607 v6608 v6609 v6610 v6611 v6612 v6613 v6614 v6615 v6616 v6617 v6618 v6619 v6620 v6621 v6622 v6623 v6624 v6625 v6626 v6627 v6628 v6629 v6630 v6631 v6632 v6633 v6634 v6635 v6636 v6637 v6638 v6639 v6640 v6641 v6642 v6643 v6644 v6645 v6646 v6647 v6648 v6649 v6650 v6651 v6652 v6653 v6654 v6655 v6656 v6657 v6658 v6659 v6660 v6661 v6662 v6663 v6664 v6665 v6666 v6667 v6668 v6669 v6670 v6671 v6759 v6760 v6761 v6762 v6763 v6764 v6937 v6938 v6939 v7262 v7263 v7264 v7265 v7266 v7267 v7268 v7269 v7270 v7271 v7272 v7273 v7274 v7275 v7276 v7277 v7278 v7279 v7280 v7281 v7282 v7283 v7284 v7285 v7286 v7287 v7288 v7289 v7290 v7291 v7292 v7293 v7294 v7295 v7296 v7297 v7298 v7299 v7300 v7301 v7302 v7303 v7304 v7305 v7306 v7307 v7308 v7309 v7310 v7311 v7312 v7313 v7314 v7315 v7316 v7317 v7318 v7319 v7320 v7321 v7322 v7323 v7324 v7325 v7326 v7327 v7328 v7329 v7330 v7331 v7332 v7333 v7334 v7335 v7336 v7337 v7338 v7339 v7340 v7341 v7342 v7343 v7344 v7345 v7346 v7347 v7348 v7349 v7350 v7351 v7352 v7353 v7354 v7355 v7356 v7357 v7358 v7359 v7360 v7361 v7362 v7363 v7364 v7365 v7366 v7367 v7368 v7369 v7370 v7371 v7372 v7373 v7374 v7375 v7376 v7377 v7378 v7379 v7380 v7381 v7382 v7383 v7384 v7385 v7386 v7387 v7388 v7389 v7390 v7391 v7392 v7393 v7394 v7395 v7396 v7397 v7398 v7399 v7400 v7401 v7402 v7403 v7404 v7405 v7406 v7407 v7408 v7409 v7410 v7411 v7412 v7413 v7414 v7415 v7416 v7417 v7418 v7419 v7420 v7421 v7422 v7423 v7424 v7425 v7426 v7427 v7428 v7429 v7430 v7431 v7432 v7433 v7434 v7435 v7436 v7437 v7438 v7439 v7440 v7441 v7442 v7443 v7444 v7445 v7446 v7447 v7448 v7449 v7450 v7451 v7452 v7453 v7454 v7455 v7456 v7457 v7458 v7459 v7460 v7461 v7462 v7463 v7464 v7465 v7466 v7467 v7468 v7469 v7470 v7471 v7472 v7473 v7474 v7475 v7476 v7477 v7478 v7479 v7480 v7481 v7482 v7483 v7484 v7485 v7486 v7487 v7488 v7489 v7490 v7491 v7492 v7493 v7494 v7495 v7496 v7497 v7498 v7499 v7500 v7501 v7502 v7503 v7504 v7505 v7506 v7507 v7508 v7509 v7510 v7511 v7512 v7513 v7514 v7515 v7516 v7517 v7518 v7519 v7520 v7521 v7522 v7523 v7524 v7525 v7526 v7527 v7528 v7529 v7530 v7531 v7532 v7533 v7534 v7535 v7536 v7537 v7538 v7539 v7540 v7541 v7542 v7543 v7544 v7545 v7546 v7547 v7548 v7549 v7550 v7551 v7552 v7553 v7554 v7555 v7556 v7557 v7558 v7559 v7560 v7561 v7562 v7563 v7564 v7565 v7566 v7567 v7568 v7569 v7570 v7571 v7572 v7573 v7574 v7575 v7576 v7577 v7578 v7579 v7580 v7581 v7582 v7583 v7584 v7585 v7586 v7587 v7588 v7589 v7590 v7591 v7592 v7593 v7594 v7595 v7596 v7597 v7598 v7599 v7600 v7601 v7602 v7603 v7604 v7605 v7606 v7607 v7608 v7609 v7610 v7611 v7612 v7613 v7614 v7615 v7616 v7617 v7618 v7619 v7620 v7621 v7622 v7623 v7624 v7625 v7626 v7627 v7628 v7629 v7630 v7631 v7632 v7633 v7634 v7635 v7636 v7637 v7638 v7639 v7640 v7641 v7642 v7643 v7644 v7645 v7646 v7647 v7648 v7649 v7650 v7651 v7652 v7653 v7654 v7655 v7656 v7657 v7658 v7659 v7660 v7661 v7662 v7663 v7664 v7665 v7753 v7754 v7755 v7756 v7757 v7758 v7972 v7973 v7976. SAVE OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\new1975long.sav'. ***************************************************** **create small employment status files to identify ** **missing from not relevant wage income last month ** *****************************************************. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\Harmonised files\Questionnaire\USA75_76quest.sav' /keep survey wave hhid pid empstat. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\emp.sav'. ********** **Wave 1** **********. GET FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\new1975long.sav' /keep v2 v432 v1074 v1183 v1187 v1188 v1687 v403 v331 v7968 v434 v442 v450 v458 v466 v474 v482 v490 v498 v506 v514 v522 v530 v538 v546 v554 v562 v570 v578 v586 v594 v602 v610 v618 v626 v634 v642 v650 v658 v666 v674 v682 v690 v698 v706 v714 v722 v730 v738 v746 v754 v762 v770 v778 v786 v794 v802 v810 v818 v826 v834 v842 v850 v858 v866 v874 v882 v890 v898 v906 v914 v922 v930 v938 v946 v954 v962 v970 v978 v986 v994 v1002 v1010 v1018 v1026 v1034 v1042 v1050 v1058 v1066 v440 v448 v456 v464 v472 v480 v488 v496 v504 v512 v520 v528 v536 v544 v552 v560 v568 v576 v584 v592 v600 v608 v616 v624 v632 v640 v648 v656 v664 v672 v680 v688 v696 v704 v712 v720 v728 v736 v744 v752 v760 v768 v776 v784 v792 v800 v808 v816 v824 v832 v840 v848 v856 v864 v872 v880 v888 v896 v904 v912 v920 v928 v936 v944 v952 v960 v968 v976 v984 v992 v1000 v1008 v1016 v1024 v1032 v1040 v1048 v1056 v1064 v1072 v437 v445 v453 v461 v469 v477 v485 v493 v501 v509 v517 v525 v533 v541 v549 v557 v565 v573 v581 v589 v597 v605 v613 v621 v629 v637 v645 v653 v661 v669 v677 v685 v693 v701 v709 v717 v725 v733 v741 v749 v757 v765 v773 v781 v789 v797 v805 v813 v821 v829 v837 v845 v853 v861 v869 v877 v885 v893 v901 v909 v917 v925 v933 v941 v949 v957 v965 v973 v981 v989 v997 v1005 v1013 v1021 v1029 v1037 v1045 v1053 v1061 v1069 v438 v446 v454 v462 v470 v478 v486 v494 v502 v510 v518 v526 v534 v542 v550 v558 v566 v574 v582 v590 v598 v606 v614 v622 v630 v638 v646 v654 v662 v670 v678 v686 v694 v702 v710 v718 v726 v734 v742 v750 v758 v766 v774 v782 v790 v798 v806 v814 v822 v830 v838 v846 v854 v862 v870 v878 v886 v894 v902 v910 v918 v926 v934 v942 v950 v958 v966 v974 v982 v990 v998 v1006 v1014 v1022 v1030 v1038 v1046 v1054 v1062 v1070 v439 v447 v455 v463 v471 v479 v487 v495 v503 v511 v519 v527 v535 v543 v551 v559 v567 v575 v583 v591 v599 v607 v615 v623 v631 v639 v647 v655 v663 v671 v679 v687 v695 v703 v711 v719 v727 v735 v743 v751 v759 v767 v775 v783 v791 v799 v807 v815 v823 v831 v839 v847 v855 v863 v871 v879 v887 v895 v903 v911 v919 v927 v935 v943 v951 v959 v967 v975 v983 v991 v999 v1007 v1015 v1023 v1031 v1039 v1047 v1055 v1063 v1071 v435 v443 v451 v459 v467 v475 v483 v491 v499 v507 v515 v523 v531 v539 v547 v555 v563 v571 v579 v587 v595 v603 v611 v619 v627 v635 v643 v651 v659 v667 v675 v683 v691 v699 v707 v715 v723 v731 v739 v747 v755 v763 v771 v779 v787 v795 v803 v811 v819 v827 v835 v843 v851 v859 v867 v875 v883 v891 v899 v907 v915 v923 v931 v939 v947 v955 v963 v971 v979 v987 v995 v1003 v1011 v1019 v1027 v1035 v1043 v1051 v1059 v1067 v436 v444 v452 v460 v468 v476 v484 v492 v500 v508 v516 v524 v532 v540 v548 v556 v564 v572 v580 v588 v596 v604 v612 v620 v628 v636 v644 v652 v660 v668 v676 v684 v692 v700 v708 v716 v724 v732 v740 v748 v756 v764 v772 v780 v788 v796 v804 v812 v820 v828 v836 v844 v852 v860 v868 v876 v884 v892 v900 v908 v916 v924 v932 v940 v948 v956 v964 v972 v980 v988 v996 v1004 v1012 v1020 v1028 v1036 v1044 v1052 v1060 v1068 v7972 v7973 v7976. rename variables (v434 v442 v450 v458 v466 v474 v482 v490 v498 v506 v514 v522 v530 v538 v546 v554 v562 v570 v578 v586 v594 v602 v610 v618 v626 v634 v642 v650 v658 v666 v674 v682 v690 v698 v706 v714 v722 v730 v738 v746 v754 v762 v770 v778 v786 v794 v802 v810 v818 v826 v834 v842 v850 v858 v866 v874 v882 v890 v898 v906 v914 v922 v930 v938 v946 v954 v962 v970 v978 v986 v994 v1002 v1010 v1018 v1026 v1034 v1042 v1050 v1058 v1066= pri1 pri2 pri3 pri4 pri5 pri6 pri7 pri8 pri9 pri10 pri11 pri12 pri13 pri14 pri15 pri16 pri17 pri18 pri19 pri20 pri21 pri22 pri23 pri24 pri25 pri26 pri27 pri28 pri29 pri30 pri31 pri32 pri33 pri34 pri35 pri36 pri37 pri38 pri39 pri40 pri41 pri42 pri43 pri44 pri45 pri46 pri47 pri48 pri49 pri50 pri51 pri52 pri53 pri54 pri55 pri56 pri57 pri58 pri59 pri60 pri61 pri62 pri63 pri64 pri65 pri66 pri67 pri68 pri69 pri70 pri71 pri72 pri73 pri74 pri75 pri76 pri77 pri78 pri79 pri80). rename variables (v440 v448 v456 v464 v472 v480 v488 v496 v504 v512 v520 v528 v536 v544 v552 v560 v568 v576 v584 v592 v600 v608 v616 v624 v632 v640 v648 v656 v664 v672 v680 v688 v696 v704 v712 v720 v728 v736 v744 v752 v760 v768 v776 v784 v792 v800 v808 v816 v824 v832 v840 v848 v856 v864 v872 v880 v888 v896 v904 v912 v920 v928 v936 v944 v952 v960 v968 v976 v984 v992 v1000 v1008 v1016 v1024 v1032 v1040 v1048 v1056 v1064 v1072= secact1 secact2 secact3 secact4 secact5 secact6 secact7 secact8 secact9 secact10 secact11 secact12 secact13 secact14 secact15 secact16 secact17 secact18 secact19 secact20 secact21 secact22 secact23 secact24 secact25 secact26 secact27 secact28 secact29 secact30 secact31 secact32 secact33 secact34 secact35 secact36 secact37 secact38 secact39 secact40 secact41 secact42 secact43 secact44 secact45 secact46 secact47 secact48 secact49 secact50 secact51 secact52 secact53 secact54 secact55 secact56 secact57 secact58 secact59 secact60 secact61 secact62 secact63 secact64 secact65 secact66 secact67 secact68 secact69 secact70 secact71 secact72 secact73 secact74 secact75 secact76 secact77 secact78 secact79 secact80). rename variables (v437 v445 v453 v461 v469 v477 v485 v493 v501 v509 v517 v525 v533 v541 v549 v557 v565 v573 v581 v589 v597 v605 v613 v621 v629 v637 v645 v653 v661 v669 v677 v685 v693 v701 v709 v717 v725 v733 v741 v749 v757 v765 v773 v781 v789 v797 v805 v813 v821 v829 v837 v845 v853 v861 v869 v877 v885 v893 v901 v909 v917 v925 v933 v941 v949 v957 v965 v973 v981 v989 v997 v1005 v1013 v1021 v1029 v1037 v1045 v1053 v1061 v1069= whr1 whr2 whr3 whr4 whr5 whr6 whr7 whr8 whr9 whr10 whr11 whr12 whr13 whr14 whr15 whr16 whr17 whr18 whr19 whr20 whr21 whr22 whr23 whr24 whr25 whr26 whr27 whr28 whr29 whr30 whr31 whr32 whr33 whr34 whr35 whr36 whr37 whr38 whr39 whr40 whr41 whr42 whr43 whr44 whr45 whr46 whr47 whr48 whr49 whr50 whr51 whr52 whr53 whr54 whr55 whr56 whr57 whr58 whr59 whr60 whr61 whr62 whr63 whr64 whr65 whr66 whr67 whr68 whr69 whr70 whr71 whr72 whr73 whr74 whr75 whr76 whr77 whr78 whr79 whr80). rename variables (v438 v446 v454 v462 v470 v478 v486 v494 v502 v510 v518 v526 v534 v542 v550 v558 v566 v574 v582 v590 v598 v606 v614 v622 v630 v638 v646 v654 v662 v670 v678 v686 v694 v702 v710 v718 v726 v734 v742 v750 v758 v766 v774 v782 v790 v798 v806 v814 v822 v830 v838 v846 v854 v862 v870 v878 v886 v894 v902 v910 v918 v926 v934 v942 v950 v958 v966 v974 v982 v990 v998 v1006 v1014 v1022 v1030 v1038 v1046 v1054 v1062 v1070= wha1 wha2 wha3 wha4 wha5 wha6 wha7 wha8 wha9 wha10 wha11 wha12 wha13 wha14 wha15 wha16 wha17 wha18 wha19 wha20 wha21 wha22 wha23 wha24 wha25 wha26 wha27 wha28 wha29 wha30 wha31 wha32 wha33 wha34 wha35 wha36 wha37 wha38 wha39 wha40 wha41 wha42 wha43 wha44 wha45 wha46 wha47 wha48 wha49 wha50 wha51 wha52 wha53 wha54 wha55 wha56 wha57 wha58 wha59 wha60 wha61 wha62 wha63 wha64 wha65 wha66 wha67 wha68 wha69 wha70 wha71 wha72 wha73 wha74 wha75 wha76 wha77 wha78 wha79 wha80). rename variables (v439 v447 v455 v463 v471 v479 v487 v495 v503 v511 v519 v527 v535 v543 v551 v559 v567 v575 v583 v591 v599 v607 v615 v623 v631 v639 v647 v655 v663 v671 v679 v687 v695 v703 v711 v719 v727 v735 v743 v751 v759 v767 v775 v783 v791 v799 v807 v815 v823 v831 v839 v847 v855 v863 v871 v879 v887 v895 v903 v911 v919 v927 v935 v943 v951 v959 v967 v975 v983 v991 v999 v1007 v1015 v1023 v1031 v1039 v1047 v1055 v1063 v1071= whb1 whb2 whb3 whb4 whb5 whb6 whb7 whb8 whb9 whb10 whb11 whb12 whb13 whb14 whb15 whb16 whb17 whb18 whb19 whb20 whb21 whb22 whb23 whb24 whb25 whb26 whb27 whb28 whb29 whb30 whb31 whb32 whb33 whb34 whb35 whb36 whb37 whb38 whb39 whb40 whb41 whb42 whb43 whb44 whb45 whb46 whb47 whb48 whb49 whb50 whb51 whb52 whb53 whb54 whb55 whb56 whb57 whb58 whb59 whb60 whb61 whb62 whb63 whb64 whb65 whb66 whb67 whb68 whb69 whb70 whb71 whb72 whb73 whb74 whb75 whb76 whb77 whb78 whb79 whb80). rename variables (v435 v443 v451 v459 v467 v475 v483 v491 v499 v507 v515 v523 v531 v539 v547 v555 v563 v571 v579 v587 v595 v603 v611 v619 v627 v635 v643 v651 v659 v667 v675 v683 v691 v699 v707 v715 v723 v731 v739 v747 v755 v763 v771 v779 v787 v795 v803 v811 v819 v827 v835 v843 v851 v859 v867 v875 v883 v891 v899 v907 v915 v923 v931 v939 v947 v955 v963 v971 v979 v987 v995 v1003 v1011 v1019 v1027 v1035 v1043 v1051 v1059 v1067= str1 str2 str3 str4 str5 str6 str7 str8 str9 str10 str11 str12 str13 str14 str15 str16 str17 str18 str19 str20 str21 str22 str23 str24 str25 str26 str27 str28 str29 str30 str31 str32 str33 str34 str35 str36 str37 str38 str39 str40 str41 str42 str43 str44 str45 str46 str47 str48 str49 str50 str51 str52 str53 str54 str55 str56 str57 str58 str59 str60 str61 str62 str63 str64 str65 str66 str67 str68 str69 str70 str71 str72 str73 str74 str75 str76 str77 str78 str79 str80). rename variables (v436 v444 v452 v460 v468 v476 v484 v492 v500 v508 v516 v524 v532 v540 v548 v556 v564 v572 v580 v588 v596 v604 v612 v620 v628 v636 v644 v652 v660 v668 v676 v684 v692 v700 v708 v716 v724 v732 v740 v748 v756 v764 v772 v780 v788 v796 v804 v812 v820 v828 v836 v844 v852 v860 v868 v876 v884 v892 v900 v908 v916 v924 v932 v940 v948 v956 v964 v972 v980 v988 v996 v1004 v1012 v1020 v1028 v1036 v1044 v1052 v1060 v1068= fin1 fin2 fin3 fin4 fin5 fin6 fin7 fin8 fin9 fin10 fin11 fin12 fin13 fin14 fin15 fin16 fin17 fin18 fin19 fin20 fin21 fin22 fin23 fin24 fin25 fin26 fin27 fin28 fin29 fin30 fin31 fin32 fin33 fin34 fin35 fin36 fin37 fin38 fin39 fin40 fin41 fin42 fin43 fin44 fin45 fin46 fin47 fin48 fin49 fin50 fin51 fin52 fin53 fin54 fin55 fin56 fin57 fin58 fin59 fin60 fin61 fin62 fin63 fin64 fin65 fin66 fin67 fin68 fin69 fin70 fin71 fin72 fin73 fin74 fin75 fin76 fin77 fin78 fin79 fin80). freq v432 v403 v1074 v1187 v1188. rename variable (v2 v1187 v1188 v403 v331 = pid month cday sex mwage). compute usualday=-8. If v1074=1 usualday=1. If v1074=5 usualday=0. val lab usualday -8 missing 0 usual day 1 unusual day. cro usualday by v1074. compute survey=2. compute year=1975. compute wave=1. compute hhid=pid. recode month cday (sysmis=-8). recode v432 (1=2) (2=3) (3=4) (4=5) (5=6) (6=7) (7=1) (0=1) (ELSE=-8) INTO diaryday. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema1.sav'. sort cases by hhid pid. match files files=* files='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\emp.sav' /by wave hhid pid. execute. select if wave=1. var lab mwage income last month. recode mwage (sysmis=0). If mwage=0 and empstat=1 or empstat=2 mwage=-8. freq survey wave month cday year mwage. cro v432 by diaryday. *remove respondent diaries doubled on spouse lines. select if v7968=1. execute. vector pri = pri1 to pri80 /secact = secact1 to secact80 /whr = whr1 to whr80 /wha = wha1 to wha80 /whb = whb1 to whb80 /str = str1 to str80 /fin = fin1 to fin80. loop i=1 to 80. compute pri=pri(i). compute secact=secact(i). compute whr=whr(i). compute wha=wha(i). compute whb=whb(i). compute str=str(i). compute fin=fin(i). var lab pri main activity. var lab secact secondary activity. var lab whr location. var lab wha "with whom 1st mention". var lab whb "with whom 2nd mention". var lab str start time. var lab fin finish time. val lab pri secact 0 'no secondary activity' 11 'normal work-main job inc work at home' 12 'work at home' 22 'job search, look for work' 23 'apply for, collect unemployment benefit' 24 'apply for/collect other welfare' 59 '2nd job (& small jobs of FT students)' 69 'meals at work' 78 'time before or after work at workplace' 79 'other work related activity' 89 'work breaks' 97 'travel related to job search' 98 'travel to/from work making other stops' 99 'travel directly to/from workplace' 109 'meal preparation, cook or serve food' 119 'meal clean-up, do dishes' 129 'routine indoor cleaning & chores' 139 'routine clean house (outside)' 149 'laundry, iron, fold clothes' 161 'repair vehicle, home' 162 'exterior repairs or maintenance' 163 'car care, cleaning, tune up' 164 'home improvements, remodelling' 171 'gardening' 172 'care of pets, walk dogs' 173 'care of house plants' 191 'other domestic work' 192 'putter in yard' 193 'household paperwork, pay bills' 197 'other household chores' 209 'care of babies aged under 5 years old' 218 'care for children of mixed ages' 219 'care for child aged 5-17' 221 'teach child skill, show how to do things' 222 'help child with homework' 239 'read to/talk with child, listen to child' 249 'adult play with child inside' 259 'sport, walk, outside with child' 269 'medical care for child' 278 'unpaid babysitting' 279 'other child care' 299 'child care travel' 301 'groceries, supermarket, shop for food' 302 'other shopping for goods or clothes' 311 'shop for goods, durables, appliances' 312 'look to rent/purchase housing' 329 'personal care services' 339 'medical care, doctor, dentist' 341 'financial services' 342 'government services' 351 'auto repair and related services' 352 'clothes repair, cleaning services' 353 'appliance repair services' 354 'household repair services' 379 'other services, go to the dump' 389 'running errands' 399 'travel related to goods or services' 409 'wash, dress, get ready' 411 'medical care of self at home' 412 'medical care to adults in household' 421 'non-medical care to adult from household' 422 'help/care for adult from other household' 423 'help/care for neighbours or friends' 424 'help or care for unspecified adults' 439 'meals & snacks at own home' 449 'meal/snack away from home or workplace' 459 'main sleep' 469 'naps and resting' 481 'time gap greater than 10 minutes' 482 'personal, private, none of your business' 483 'sex, make out' 489 'other personal care' 498 'travel related to adult care' 499 'travel related to personal care' 509 'ft student attend classes' 519 'course/lecture' 549 'homework, study, research' 569 'other education' 579 'end of diary activity' 599 'other school-related travel' 601 'union/professional group meetings' 602 'other union/professional group activity' 611 'meetings of identity groups' 612 'other identity group activities' 621 'meeting of political or civic group' 622 'other political/civic activities' 631 'attend meetings of voluntary group' 632 'office volunteer' 633 'fundraising activity for voluntary group' 634 'direct help to persons as a member' 635 'other voluntary activities for group' 641 'religious charity group meeting' 642 'other religious charity activity' 643 'other religious group meetings' 644 'other religious group act/social' 651 'attend religious services' 652 'private worship' 661 'meetings of fraternal organisations' 662 'other fraternal organisation activities' 671 'meetings of family/youth organisations' 672 'other family/youth group activities' 689 'miscl volunteering' 698 'travel related membership activities' 699 'travel for other voluntary acts' 709 'attend sports event' 719 'other public event' 729 'movies' 739 'theater, concert, opera, ballet' 749 'museum, gallery, zoo, exhibition' 752 'visiting with others' 769 'parties, receptions' 771 'at bar, cocktail lounge' 772 'dancing' 789 'other socializing' 799 'travel related to public events' 801 'football, basket ball etc' 802 'tennis, squash etc' 803 'golf, miniature golf' 804 'swim, water ski' 805 'ski, skate' 806 'bowl, ping-pong' 807 'frisbee, catch' 808 'exercise, yoga' 811 'hunting' 812 'fishing' 813 'boat, sail, canoe' 814 'camping' 815 'snowmobile, dune buggy' 816 'gliding, ballooning' 817 'excursions' 818 'picnic' 821 'walking for pleasure' 822 'hiking' 823 'jogging, running' 824 'cycling' 825 'motorcycling' 826 'horseback riding' 831 'photography' 832 'work on cars as hobby' 833 'repair leisure equipment' 834 'collections, scrapbooks' 835 'carpentry/woodwork as hobby' 841 'preserve foodstuffs' 842 'knit, sew, needlework' 843 'sewing' 844 'care livestock/animals (not as farmer)' 851 'sculpture, painting, drawing' 852 'literature, write poetry' 861 'play musical instrument' 862 'sing' 863 'act' 864 'non-social dancing' 871 'play card games' 872 'play board games' 873 'play social games' 874 'puzzles' 888 'sports classes or training' 889 'other active leisure' 899 'travel related to sport or leisure' 909 'listen to radio' 919 'watch TV' 929 'listen to music, records' 939 'read books' 941 'read magazines, pamphlets' 942 'read - not specified what' 959 'read newspaper' 961 'phone conversations' 962 'face to face conversations' 963 'conversation with hh members' 979 'read or write letters' 981 'relax' 982 'think, plan, reflect' 983 'do nothing, sit' 984 'reported act of other, not self' 989 'other passing leisure, smoke dope' 999 'travel related to passive leisure'. val lab whr 1 'own home' 2 'in transit' 3 'at work' 4 'other home' 5 'restaurant or bar' 6 'indoor leisure place' 7 'outdoor leisure place' 8 'other place'. val lab wha whb 0 'alone' 1 'spouse/fiance' 2 'close family' 3 'other resident adult' 4 'other friend/relation' 5 'co-worker' 6 'organisation member' 7 'neighbour' 8 'service personnel' 9 'others'. xsave outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary1.sav' /keep = survey wave hhid pid diaryday cday month year pri secact whr wha whb str fin sex mwage v7972 v7973 v7976. end loop. execute. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary1.sav'. recode pri secact (956=959) (sysmis=-8). freq pri secact. Do if (pri>0 and pri~=579) and secact=-8. compute secact=0. End if. freq secact. vector dqcheck(3). Loop i=1 to 3. compute dqcheck(i)=0. end loop. var lab dqcheck1 "miss main, mode of transport". var lab dqcheck2 "miss main, 2nd act reported". var lab dqcheck3 "miss 20 min before/after travel". val lab dqcheck1 to dqcheck3 0 ordinary diary 1 includes pattern. freq dqcheck1 to dqcheck3. Do if pri=481 and secact>0. compute pri=secact. compute secact=0. compute dqcheck2=1. End if. freq pri secact dqcheck2. recode str fin (sysmis=-8). do if str=-8 and fin>-1. compute str=0. end if. desc str fin. temp. select if str=0. freq str. compute ep1=0. if $casenum=1 or hhid~=lag(hhid) ep1=1. freq ep1. temp. select if pri=481. freq pri. Do if ep1=1 and pri=-8. compute pri=481. compute str=0. compute fin=2400. End if. temp. select if pri=481. freq pri. select if pri>-8 and pri~=579. execute. *this select command just leaves the diaries. sort cases by pid str. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary1.sav'. sort cases by hhid. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\testspid1.sav' /BREAK=hhid /cday_1 = MEAN(cday). ********** **Wave 2** **********. GET FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\new1975long.sav' /keep v2 v1183 v1687 v1688 v1689 v1691 v2333 v403 v2861 v7968 v1693 v1701 v1709 v1717 v1725 v1733 v1741 v1749 v1757 v1765 v1773 v1781 v1789 v1797 v1805 v1813 v1821 v1829 v1837 v1845 v1853 v1861 v1869 v1877 v1885 v1893 v1901 v1909 v1917 v1925 v1933 v1941 v1949 v1957 v1965 v1973 v1981 v1989 v1997 v2005 v2013 v2021 v2029 v2037 v2045 v2053 v2061 v2069 v2077 v2085 v2093 v2101 v2109 v2117 v2125 v2133 v2141 v2149 v2157 v2165 v2173 v2181 v2189 v2197 v2205 v2213 v2221 v2229 v2237 v2245 v2253 v2261 v2269 v2277 v2285 v2293 v2301 v2309 v2317 v2325 v1699 v1707 v1715 v1723 v1731 v1739 v1747 v1755 v1763 v1771 v1779 v1787 v1795 v1803 v1811 v1819 v1827 v1835 v1843 v1851 v1859 v1867 v1875 v1883 v1891 v1899 v1907 v1915 v1923 v1931 v1939 v1947 v1955 v1963 v1971 v1979 v1987 v1995 v2003 v2011 v2019 v2027 v2035 v2043 v2051 v2059 v2067 v2075 v2083 v2091 v2099 v2107 v2115 v2123 v2131 v2139 v2147 v2155 v2163 v2171 v2179 v2187 v2195 v2203 v2211 v2219 v2227 v2235 v2243 v2251 v2259 v2267 v2275 v2283 v2291 v2299 v2307 v2315 v2323 v2331 v1696 v1704 v1712 v1720 v1728 v1736 v1744 v1752 v1760 v1768 v1776 v1784 v1792 v1800 v1808 v1816 v1824 v1832 v1840 v1848 v1856 v1864 v1872 v1880 v1888 v1896 v1904 v1912 v1920 v1928 v1936 v1944 v1952 v1960 v1968 v1976 v1984 v1992 v2000 v2008 v2016 v2024 v2032 v2040 v2048 v2056 v2064 v2072 v2080 v2088 v2096 v2104 v2112 v2120 v2128 v2136 v2144 v2152 v2160 v2168 v2176 v2184 v2192 v2200 v2208 v2216 v2224 v2232 v2240 v2248 v2256 v2264 v2272 v2280 v2288 v2296 v2304 v2312 v2320 v2328 v1697 v1705 v1713 v1721 v1729 v1737 v1745 v1753 v1761 v1769 v1777 v1785 v1793 v1801 v1809 v1817 v1825 v1833 v1841 v1849 v1857 v1865 v1873 v1881 v1889 v1897 v1905 v1913 v1921 v1929 v1937 v1945 v1953 v1961 v1969 v1977 v1985 v1993 v2001 v2009 v2017 v2025 v2033 v2041 v2049 v2057 v2065 v2073 v2081 v2089 v2097 v2105 v2113 v2121 v2129 v2137 v2145 v2153 v2161 v2169 v2177 v2185 v2193 v2201 v2209 v2217 v2225 v2233 v2241 v2249 v2257 v2265 v2273 v2281 v2289 v2297 v2305 v2313 v2321 v2329 v1698 v1706 v1714 v1722 v1730 v1738 v1746 v1754 v1762 v1770 v1778 v1786 v1794 v1802 v1810 v1818 v1826 v1834 v1842 v1850 v1858 v1866 v1874 v1882 v1890 v1898 v1906 v1914 v1922 v1930 v1938 v1946 v1954 v1962 v1970 v1978 v1986 v1994 v2002 v2010 v2018 v2026 v2034 v2042 v2050 v2058 v2066 v2074 v2082 v2090 v2098 v2106 v2114 v2122 v2130 v2138 v2146 v2154 v2162 v2170 v2178 v2186 v2194 v2202 v2210 v2218 v2226 v2234 v2242 v2250 v2258 v2266 v2274 v2282 v2290 v2298 v2306 v2314 v2322 v2330 v1694 v1702 v1710 v1718 v1726 v1734 v1742 v1750 v1758 v1766 v1774 v1782 v1790 v1798 v1806 v1814 v1822 v1830 v1838 v1846 v1854 v1862 v1870 v1878 v1886 v1894 v1902 v1910 v1918 v1926 v1934 v1942 v1950 v1958 v1966 v1974 v1982 v1990 v1998 v2006 v2014 v2022 v2030 v2038 v2046 v2054 v2062 v2070 v2078 v2086 v2094 v2102 v2110 v2118 v2126 v2134 v2142 v2150 v2158 v2166 v2174 v2182 v2190 v2198 v2206 v2214 v2222 v2230 v2238 v2246 v2254 v2262 v2270 v2278 v2286 v2294 v2302 v2310 v2318 v2326 v1695 v1703 v1711 v1719 v1727 v1735 v1743 v1751 v1759 v1767 v1775 v1783 v1791 v1799 v1807 v1815 v1823 v1831 v1839 v1847 v1855 v1863 v1871 v1879 v1887 v1895 v1903 v1911 v1919 v1927 v1935 v1943 v1951 v1959 v1967 v1975 v1983 v1991 v1999 v2007 v2015 v2023 v2031 v2039 v2047 v2055 v2063 v2071 v2079 v2087 v2095 v2103 v2111 v2119 v2127 v2135 v2143 v2151 v2159 v2167 v2175 v2183 v2191 v2199 v2207 v2215 v2223 v2231 v2239 v2247 v2255 v2263 v2271 v2279 v2287 v2295 v2303 v2311 v2319 v2327 v7972 v7973 v7976. rename variables (v1693 v1701 v1709 v1717 v1725 v1733 v1741 v1749 v1757 v1765 v1773 v1781 v1789 v1797 v1805 v1813 v1821 v1829 v1837 v1845 v1853 v1861 v1869 v1877 v1885 v1893 v1901 v1909 v1917 v1925 v1933 v1941 v1949 v1957 v1965 v1973 v1981 v1989 v1997 v2005 v2013 v2021 v2029 v2037 v2045 v2053 v2061 v2069 v2077 v2085 v2093 v2101 v2109 v2117 v2125 v2133 v2141 v2149 v2157 v2165 v2173 v2181 v2189 v2197 v2205 v2213 v2221 v2229 v2237 v2245 v2253 v2261 v2269 v2277 v2285 v2293 v2301 v2309 v2317 v2325= pri1 pri2 pri3 pri4 pri5 pri6 pri7 pri8 pri9 pri10 pri11 pri12 pri13 pri14 pri15 pri16 pri17 pri18 pri19 pri20 pri21 pri22 pri23 pri24 pri25 pri26 pri27 pri28 pri29 pri30 pri31 pri32 pri33 pri34 pri35 pri36 pri37 pri38 pri39 pri40 pri41 pri42 pri43 pri44 pri45 pri46 pri47 pri48 pri49 pri50 pri51 pri52 pri53 pri54 pri55 pri56 pri57 pri58 pri59 pri60 pri61 pri62 pri63 pri64 pri65 pri66 pri67 pri68 pri69 pri70 pri71 pri72 pri73 pri74 pri75 pri76 pri77 pri78 pri79 pri80). rename variables (v1699 v1707 v1715 v1723 v1731 v1739 v1747 v1755 v1763 v1771 v1779 v1787 v1795 v1803 v1811 v1819 v1827 v1835 v1843 v1851 v1859 v1867 v1875 v1883 v1891 v1899 v1907 v1915 v1923 v1931 v1939 v1947 v1955 v1963 v1971 v1979 v1987 v1995 v2003 v2011 v2019 v2027 v2035 v2043 v2051 v2059 v2067 v2075 v2083 v2091 v2099 v2107 v2115 v2123 v2131 v2139 v2147 v2155 v2163 v2171 v2179 v2187 v2195 v2203 v2211 v2219 v2227 v2235 v2243 v2251 v2259 v2267 v2275 v2283 v2291 v2299 v2307 v2315 v2323 v2331= secact1 secact2 secact3 secact4 secact5 secact6 secact7 secact8 secact9 secact10 secact11 secact12 secact13 secact14 secact15 secact16 secact17 secact18 secact19 secact20 secact21 secact22 secact23 secact24 secact25 secact26 secact27 secact28 secact29 secact30 secact31 secact32 secact33 secact34 secact35 secact36 secact37 secact38 secact39 secact40 secact41 secact42 secact43 secact44 secact45 secact46 secact47 secact48 secact49 secact50 secact51 secact52 secact53 secact54 secact55 secact56 secact57 secact58 secact59 secact60 secact61 secact62 secact63 secact64 secact65 secact66 secact67 secact68 secact69 secact70 secact71 secact72 secact73 secact74 secact75 secact76 secact77 secact78 secact79 secact80). rename variables (v1696 v1704 v1712 v1720 v1728 v1736 v1744 v1752 v1760 v1768 v1776 v1784 v1792 v1800 v1808 v1816 v1824 v1832 v1840 v1848 v1856 v1864 v1872 v1880 v1888 v1896 v1904 v1912 v1920 v1928 v1936 v1944 v1952 v1960 v1968 v1976 v1984 v1992 v2000 v2008 v2016 v2024 v2032 v2040 v2048 v2056 v2064 v2072 v2080 v2088 v2096 v2104 v2112 v2120 v2128 v2136 v2144 v2152 v2160 v2168 v2176 v2184 v2192 v2200 v2208 v2216 v2224 v2232 v2240 v2248 v2256 v2264 v2272 v2280 v2288 v2296 v2304 v2312 v2320 v2328= whr1 whr2 whr3 whr4 whr5 whr6 whr7 whr8 whr9 whr10 whr11 whr12 whr13 whr14 whr15 whr16 whr17 whr18 whr19 whr20 whr21 whr22 whr23 whr24 whr25 whr26 whr27 whr28 whr29 whr30 whr31 whr32 whr33 whr34 whr35 whr36 whr37 whr38 whr39 whr40 whr41 whr42 whr43 whr44 whr45 whr46 whr47 whr48 whr49 whr50 whr51 whr52 whr53 whr54 whr55 whr56 whr57 whr58 whr59 whr60 whr61 whr62 whr63 whr64 whr65 whr66 whr67 whr68 whr69 whr70 whr71 whr72 whr73 whr74 whr75 whr76 whr77 whr78 whr79 whr80). rename variables (v1697 v1705 v1713 v1721 v1729 v1737 v1745 v1753 v1761 v1769 v1777 v1785 v1793 v1801 v1809 v1817 v1825 v1833 v1841 v1849 v1857 v1865 v1873 v1881 v1889 v1897 v1905 v1913 v1921 v1929 v1937 v1945 v1953 v1961 v1969 v1977 v1985 v1993 v2001 v2009 v2017 v2025 v2033 v2041 v2049 v2057 v2065 v2073 v2081 v2089 v2097 v2105 v2113 v2121 v2129 v2137 v2145 v2153 v2161 v2169 v2177 v2185 v2193 v2201 v2209 v2217 v2225 v2233 v2241 v2249 v2257 v2265 v2273 v2281 v2289 v2297 v2305 v2313 v2321 v2329= wha1 wha2 wha3 wha4 wha5 wha6 wha7 wha8 wha9 wha10 wha11 wha12 wha13 wha14 wha15 wha16 wha17 wha18 wha19 wha20 wha21 wha22 wha23 wha24 wha25 wha26 wha27 wha28 wha29 wha30 wha31 wha32 wha33 wha34 wha35 wha36 wha37 wha38 wha39 wha40 wha41 wha42 wha43 wha44 wha45 wha46 wha47 wha48 wha49 wha50 wha51 wha52 wha53 wha54 wha55 wha56 wha57 wha58 wha59 wha60 wha61 wha62 wha63 wha64 wha65 wha66 wha67 wha68 wha69 wha70 wha71 wha72 wha73 wha74 wha75 wha76 wha77 wha78 wha79 wha80). rename variables (v1698 v1706 v1714 v1722 v1730 v1738 v1746 v1754 v1762 v1770 v1778 v1786 v1794 v1802 v1810 v1818 v1826 v1834 v1842 v1850 v1858 v1866 v1874 v1882 v1890 v1898 v1906 v1914 v1922 v1930 v1938 v1946 v1954 v1962 v1970 v1978 v1986 v1994 v2002 v2010 v2018 v2026 v2034 v2042 v2050 v2058 v2066 v2074 v2082 v2090 v2098 v2106 v2114 v2122 v2130 v2138 v2146 v2154 v2162 v2170 v2178 v2186 v2194 v2202 v2210 v2218 v2226 v2234 v2242 v2250 v2258 v2266 v2274 v2282 v2290 v2298 v2306 v2314 v2322 v2330= whb1 whb2 whb3 whb4 whb5 whb6 whb7 whb8 whb9 whb10 whb11 whb12 whb13 whb14 whb15 whb16 whb17 whb18 whb19 whb20 whb21 whb22 whb23 whb24 whb25 whb26 whb27 whb28 whb29 whb30 whb31 whb32 whb33 whb34 whb35 whb36 whb37 whb38 whb39 whb40 whb41 whb42 whb43 whb44 whb45 whb46 whb47 whb48 whb49 whb50 whb51 whb52 whb53 whb54 whb55 whb56 whb57 whb58 whb59 whb60 whb61 whb62 whb63 whb64 whb65 whb66 whb67 whb68 whb69 whb70 whb71 whb72 whb73 whb74 whb75 whb76 whb77 whb78 whb79 whb80). rename variables (v1694 v1702 v1710 v1718 v1726 v1734 v1742 v1750 v1758 v1766 v1774 v1782 v1790 v1798 v1806 v1814 v1822 v1830 v1838 v1846 v1854 v1862 v1870 v1878 v1886 v1894 v1902 v1910 v1918 v1926 v1934 v1942 v1950 v1958 v1966 v1974 v1982 v1990 v1998 v2006 v2014 v2022 v2030 v2038 v2046 v2054 v2062 v2070 v2078 v2086 v2094 v2102 v2110 v2118 v2126 v2134 v2142 v2150 v2158 v2166 v2174 v2182 v2190 v2198 v2206 v2214 v2222 v2230 v2238 v2246 v2254 v2262 v2270 v2278 v2286 v2294 v2302 v2310 v2318 v2326= str1 str2 str3 str4 str5 str6 str7 str8 str9 str10 str11 str12 str13 str14 str15 str16 str17 str18 str19 str20 str21 str22 str23 str24 str25 str26 str27 str28 str29 str30 str31 str32 str33 str34 str35 str36 str37 str38 str39 str40 str41 str42 str43 str44 str45 str46 str47 str48 str49 str50 str51 str52 str53 str54 str55 str56 str57 str58 str59 str60 str61 str62 str63 str64 str65 str66 str67 str68 str69 str70 str71 str72 str73 str74 str75 str76 str77 str78 str79 str80). rename variables (v1695 v1703 v1711 v1719 v1727 v1735 v1743 v1751 v1759 v1767 v1775 v1783 v1791 v1799 v1807 v1815 v1823 v1831 v1839 v1847 v1855 v1863 v1871 v1879 v1887 v1895 v1903 v1911 v1919 v1927 v1935 v1943 v1951 v1959 v1967 v1975 v1983 v1991 v1999 v2007 v2015 v2023 v2031 v2039 v2047 v2055 v2063 v2071 v2079 v2087 v2095 v2103 v2111 v2119 v2127 v2135 v2143 v2151 v2159 v2167 v2175 v2183 v2191 v2199 v2207 v2215 v2223 v2231 v2239 v2247 v2255 v2263 v2271 v2279 v2287 v2295 v2303 v2311 v2319 v2327= fin1 fin2 fin3 fin4 fin5 fin6 fin7 fin8 fin9 fin10 fin11 fin12 fin13 fin14 fin15 fin16 fin17 fin18 fin19 fin20 fin21 fin22 fin23 fin24 fin25 fin26 fin27 fin28 fin29 fin30 fin31 fin32 fin33 fin34 fin35 fin36 fin37 fin38 fin39 fin40 fin41 fin42 fin43 fin44 fin45 fin46 fin47 fin48 fin49 fin50 fin51 fin52 fin53 fin54 fin55 fin56 fin57 fin58 fin59 fin60 fin61 fin62 fin63 fin64 fin65 fin66 fin67 fin68 fin69 fin70 fin71 fin72 fin73 fin74 fin75 fin76 fin77 fin78 fin79 fin80). freq v1688 v1689 v1691 v2333. rename variable (v2 v1183 v1688 v1689 v403 v2861= pid spid month cday sex mwage). compute usualday=-8. If v2333=1 usualday=1. If v2333=5 usualday=0. val lab usualday -8 missing -7 not asked of spouses 0 usual day 1 unusual day. cro usualday by v2333. compute survey=2. compute year=1976. compute wave=2. compute hhid=pid. recode month cday (sysmis=-8). recode v1691 (1=2) (2=3) (3=4) (4=5) (5=6) (6=7) (7=1) (ELSE=-8) INTO diaryday. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema1.sav'. sort cases by hhid pid. match files files=* files='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\emp.sav' /by wave hhid pid. execute. select if wave=2. var lab mwage income last month. recode mwage (sysmis=0). If mwage=0 and empstat=1 or empstat=2 mwage=-8. freq survey wave month cday year mwage. cro v1691 by diaryday. *remove duplicated diaries on spouse lines. select if v7968=1. vector pri = pri1 to pri80 /secact = secact1 to secact80 /whr = whr1 to whr80 /wha = wha1 to wha80 /whb = whb1 to whb80 /str = str1 to str80 /fin = fin1 to fin80. loop i=1 to 80. compute pri=pri(i). compute secact=secact(i). compute whr=whr(i). compute wha=wha(i). compute whb=whb(i). compute str=str(i). compute fin=fin(i). var lab pri main activity. var lab secact secondary activity. var lab whr location. var lab wha "with whom 1st mention". var lab whb "with whom 2nd mention". var lab str start time. var lab fin finish time. val lab pri secact 0 'no secondary activity' 11 'normal work-main job inc work at home' 12 'work at home' 22 'job search, look for work' 23 'apply for, collect unemployment benefit' 24 'apply for/collect other welfare' 59 '2nd job (& small jobs of FT students)' 69 'meals at work' 78 'time before or after work at workplace' 79 'other work related activity' 89 'work breaks' 97 'travel related to job search' 98 'travel to/from work making other stops' 99 'travel directly to/from workplace' 109 'meal preparation, cook or serve food' 119 'meal clean-up, do dishes' 129 'routine indoor cleaning & chores' 139 'routine clean house (outside)' 149 'laundry, iron, fold clothes' 161 'repair vehicle, home' 162 'exterior repairs or maintenance' 163 'car care, cleaning, tune up' 164 'home improvements, remodelling' 171 'gardening' 172 'care of pets, walk dogs' 173 'care of house plants' 191 'other domestic work' 192 'putter in yard' 193 'household paperwork, pay bills' 197 'other household chores' 209 'care of babies aged under 5 years old' 218 'care for children of mixed ages' 219 'care for child aged 5-17' 221 'teach child skill, show how to do things' 222 'help child with homework' 239 'read to/talk with child, listen to child' 249 'adult play with child inside' 259 'sport, walk, outside with child' 269 'medical care for child' 278 'unpaid babysitting' 279 'other child care' 299 'child care travel' 301 'groceries, supermarket, shop for food' 302 'other shopping for goods or clothes' 311 'shop for goods, durables, appliances' 312 'look to rent/purchase housing' 329 'personal care services' 339 'medical care, doctor, dentist' 341 'financial services' 342 'government services' 351 'auto repair and related services' 352 'clothes repair, cleaning services' 353 'appliance repair services' 354 'household repair services' 379 'other services, go to the dump' 389 'running errands' 399 'travel related to goods or services' 409 'wash, dress, get ready' 411 'medical care of self at home' 412 'medical care to adults in household' 421 'non-medical care to adult from household' 422 'help/care for adult from other household' 423 'help/care for neighbours or friends' 424 'help or care for unspecified adults' 439 'meals & snacks at own home' 449 'meal/snack away from home or workplace' 459 'main sleep' 469 'naps and resting' 481 'time gap greater than 10 minutes' 482 'personal, private, none of your business' 483 'sex, make out' 489 'other personal care' 498 'travel related to adult care' 499 'travel related to personal care' 509 'ft student attend classes' 519 'course/lecture' 549 'homework, study, research' 569 'other education' 579 'end of diary activity' 599 'other school-related travel' 601 'union/professional group meetings' 602 'other union/professional group activity' 611 'meetings of identity groups' 612 'other identity group activities' 621 'meeting of political or civic group' 622 'other political/civic activities' 631 'attend meetings of voluntary group' 632 'office volunteer' 633 'fundraising activity for voluntary group' 634 'direct help to persons as a member' 635 'other voluntary activities for group' 641 'religious charity group meeting' 642 'other religious charity activity' 643 'other religious group meetings' 644 'other religious group act/social' 651 'attend religious services' 652 'private worship' 661 'meetings of fraternal organisations' 662 'other fraternal organisation activities' 671 'meetings of family/youth organisations' 672 'other family/youth group activities' 689 'miscl volunteering' 698 'travel related membership activities' 699 'travel for other voluntary acts' 709 'attend sports event' 719 'other public event' 729 'movies' 739 'theater, concert, opera, ballet' 749 'museum, gallery, zoo, exhibition' 752 'visiting with others' 769 'parties, receptions' 771 'at bar, cocktail lounge' 772 'dancing' 789 'other socializing' 799 'travel related to public events' 801 'football, basket ball etc' 802 'tennis, squash etc' 803 'golf, miniature golf' 804 'swim, water ski' 805 'ski, skate' 806 'bowl, ping-pong' 807 'frisbee, catch' 808 'exercise, yoga' 811 'hunting' 812 'fishing' 813 'boat, sail, canoe' 814 'camping' 815 'snowmobile, dune buggy' 816 'gliding, ballooning' 817 'excursions' 818 'picnic' 821 'walking for pleasure' 822 'hiking' 823 'jogging, running' 824 'cycling' 825 'motorcycling' 826 'horseback riding' 831 'photography' 832 'work on cars as hobby' 833 'repair leisure equipment' 834 'collections, scrapbooks' 835 'carpentry/woodwork as hobby' 841 'preserve foodstuffs' 842 'knit, sew, needlework' 843 'sewing' 844 'care livestock/animals (not as farmer)' 851 'sculpture, painting, drawing' 852 'literature, write poetry' 861 'play musical instrument' 862 'sing' 863 'act' 864 'non-social dancing' 871 'play card games' 872 'play board games' 873 'play social games' 874 'puzzles' 888 'sports classes or training' 889 'other active leisure' 899 'travel related to sport or leisure' 909 'listen to radio' 919 'watch TV' 929 'listen to music, records' 939 'read books' 941 'read magazines, pamphlets' 942 'read - not specified what' 959 'read newspaper' 961 'phone conversations' 962 'face to face conversations' 963 'conversation with hh members' 979 'read or write letters' 981 'relax' 982 'think, plan, reflect' 983 'do nothing, sit' 984 'reported act of other, not self' 989 'other passing leisure, smoke dope' 999 'travel related to passive leisure'. val lab whr 1 'own home' 2 'in transit' 3 'at work' 4 'other home' 5 'restaurant or bar' 6 'indoor leisure place' 7 'outdoor leisure place' 8 'other place'. val lab wha whb 0 'alone' 1 'spouse/fiance' 2 'close family' 3 'other resident adult' 4 'other friend/relation' 5 'co-worker' 6 'organisation member' 7 'neighbour' 8 'service personnel' 9 'others'. xsave outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary2.sav' /keep = survey wave hhid pid diaryday cday month year pri secact whr wha whb str fin sex mwage v7972 v7973 v7976. end loop. execute. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary2.sav'. freq pri secact. recode pri secact (907=909) (sysmis=-8). Do if (pri>0 and pri~=579) and secact=-8. compute secact=0. End if. vector dqcheck(3). Loop i=1 to 3. compute dqcheck(i)=0. end loop. var lab dqcheck1 "miss main, mode of transport". var lab dqcheck2 "miss main, 2nd act reported". var lab dqcheck3 "miss 20 min before/after travel". val lab dqcheck1 to dqcheck3 0 ordinary diary 1 includes pattern. freq dqcheck1 to dqcheck3. Do if pri=481 and secact>0. compute pri=secact. compute secact=0. compute dqcheck2=1. End if. freq secact dqcheck2. recode str fin (sysmis=-8). do if str=-8 and fin>-1. compute str=0. end if. desc str fin. compute ep1=0. if $casenum=1 or hhid~=lag(hhid) ep1=1. freq ep1. temp. select if pri=481. freq pri. Do if ep1=1 and (pri=-8 or pri=579). compute pri=481. compute str=0. compute fin=2400. End if. temp. select if pri=481. freq pri. select if pri>-8 and pri~=579. execute. *this select command just leaves the diaries as well as *markers for people who did not return their second wave diary. *correct one diary with problems in end time that produce 1440 minutes but the *wrong distribution of time in two activities. do if hhid=910 and pid=910 and str=800. compute fin=1100. Else if hhid=910 and pid=910 and str=2145. compute fin=2300. Else if hhid=910 and pid=910 and str=2200. compute str=2300. compute fin=2400. end if. execute. sort cases by hhid pid str. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary2.sav'. sort cases by hhid. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\testspid2.sav' /BREAK=hhid /cday_1 = MEAN(cday). ********** **Wave 3** **********. GET FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\new1975long.sav' /keep v2 v403 v7968 v4744 v3647 v3648 v4011 v3940 v4015 v4023 v4031 v4039 v4047 v4055 v4063 v4071 v4079 v4087 v4095 v4103 v4111 v4119 v4127 v4135 v4143 v4151 v4159 v4167 v4175 v4183 v4191 v4199 v4207 v4215 v4223 v4231 v4239 v4247 v4255 v4263 v4271 v4279 v4287 v4295 v4303 v4311 v4319 v4327 v4335 v4343 v4351 v4359 v4367 v4375 v4383 v4391 v4399 v4407 v4415 v4423 v4431 v4439 v4447 v4455 v4463 v4471 v4479 v4487 v4495 v4503 v4511 v4519 v4527 v4535 v4543 v4551 v4559 v4567 v4575 v4583 v4591 v4599 v4607 v4615 v4623 v4631 v4639 v4647 v4021 v4029 v4037 v4045 v4053 v4061 v4069 v4077 v4085 v4093 v4101 v4109 v4117 v4125 v4133 v4141 v4149 v4157 v4165 v4173 v4181 v4189 v4197 v4205 v4213 v4221 v4229 v4237 v4245 v4253 v4261 v4269 v4277 v4285 v4293 v4301 v4309 v4317 v4325 v4333 v4341 v4349 v4357 v4365 v4373 v4381 v4389 v4397 v4405 v4413 v4421 v4429 v4437 v4445 v4453 v4461 v4469 v4477 v4485 v4493 v4501 v4509 v4517 v4525 v4533 v4541 v4549 v4557 v4565 v4573 v4581 v4589 v4597 v4605 v4613 v4621 v4629 v4637 v4645 v4653 v4018 v4026 v4034 v4042 v4050 v4058 v4066 v4074 v4082 v4090 v4098 v4106 v4114 v4122 v4130 v4138 v4146 v4154 v4162 v4170 v4178 v4186 v4194 v4202 v4210 v4218 v4226 v4234 v4242 v4250 v4258 v4266 v4274 v4282 v4290 v4298 v4306 v4314 v4322 v4330 v4338 v4346 v4354 v4362 v4370 v4378 v4386 v4394 v4402 v4410 v4418 v4426 v4434 v4442 v4450 v4458 v4466 v4474 v4482 v4490 v4498 v4506 v4514 v4522 v4530 v4538 v4546 v4554 v4562 v4570 v4578 v4586 v4594 v4602 v4610 v4618 v4626 v4634 v4642 v4650 v4019 v4027 v4035 v4043 v4051 v4059 v4067 v4075 v4083 v4091 v4099 v4107 v4115 v4123 v4131 v4139 v4147 v4155 v4163 v4171 v4179 v4187 v4195 v4203 v4211 v4219 v4227 v4235 v4243 v4251 v4259 v4267 v4275 v4283 v4291 v4299 v4307 v4315 v4323 v4331 v4339 v4347 v4355 v4363 v4371 v4379 v4387 v4395 v4403 v4411 v4419 v4427 v4435 v4443 v4451 v4459 v4467 v4475 v4483 v4491 v4499 v4507 v4515 v4523 v4531 v4539 v4547 v4555 v4563 v4571 v4579 v4587 v4595 v4603 v4611 v4619 v4627 v4635 v4643 v4651 v4020 v4028 v4036 v4044 v4052 v4060 v4068 v4076 v4084 v4092 v4100 v4108 v4116 v4124 v4132 v4140 v4148 v4156 v4164 v4172 v4180 v4188 v4196 v4204 v4212 v4220 v4228 v4236 v4244 v4252 v4260 v4268 v4276 v4284 v4292 v4300 v4308 v4316 v4324 v4332 v4340 v4348 v4356 v4364 v4372 v4380 v4388 v4396 v4404 v4412 v4420 v4428 v4436 v4444 v4452 v4460 v4468 v4476 v4484 v4492 v4500 v4508 v4516 v4524 v4532 v4540 v4548 v4556 v4564 v4572 v4580 v4588 v4596 v4604 v4612 v4620 v4628 v4636 v4644 v4652 v4016 v4024 v4032 v4040 v4048 v4056 v4064 v4072 v4080 v4088 v4096 v4104 v4112 v4120 v4128 v4136 v4144 v4152 v4160 v4168 v4176 v4184 v4192 v4200 v4208 v4216 v4224 v4232 v4240 v4248 v4256 v4264 v4272 v4280 v4288 v4296 v4304 v4312 v4320 v4328 v4336 v4344 v4352 v4360 v4368 v4376 v4384 v4392 v4400 v4408 v4416 v4424 v4432 v4440 v4448 v4456 v4464 v4472 v4480 v4488 v4496 v4504 v4512 v4520 v4528 v4536 v4544 v4552 v4560 v4568 v4576 v4584 v4592 v4600 v4608 v4616 v4624 v4632 v4640 v4648 v4017 v4025 v4033 v4041 v4049 v4057 v4065 v4073 v4081 v4089 v4097 v4105 v4113 v4121 v4129 v4137 v4145 v4153 v4161 v4169 v4177 v4185 v4193 v4201 v4209 v4217 v4225 v4233 v4241 v4249 v4257 v4265 v4273 v4281 v4289 v4297 v4305 v4313 v4321 v4329 v4337 v4345 v4353 v4361 v4369 v4377 v4385 v4393 v4401 v4409 v4417 v4425 v4433 v4441 v4449 v4457 v4465 v4473 v4481 v4489 v4497 v4505 v4513 v4521 v4529 v4537 v4545 v4553 v4561 v4569 v4577 v4585 v4593 v4601 v4609 v4617 v4625 v4633 v4641 v4649 v7972 v7973 v7976. rename variables (v4015 v4023 v4031 v4039 v4047 v4055 v4063 v4071 v4079 v4087 v4095 v4103 v4111 v4119 v4127 v4135 v4143 v4151 v4159 v4167 v4175 v4183 v4191 v4199 v4207 v4215 v4223 v4231 v4239 v4247 v4255 v4263 v4271 v4279 v4287 v4295 v4303 v4311 v4319 v4327 v4335 v4343 v4351 v4359 v4367 v4375 v4383 v4391 v4399 v4407 v4415 v4423 v4431 v4439 v4447 v4455 v4463 v4471 v4479 v4487 v4495 v4503 v4511 v4519 v4527 v4535 v4543 v4551 v4559 v4567 v4575 v4583 v4591 v4599 v4607 v4615 v4623 v4631 v4639 v4647= pri1 pri2 pri3 pri4 pri5 pri6 pri7 pri8 pri9 pri10 pri11 pri12 pri13 pri14 pri15 pri16 pri17 pri18 pri19 pri20 pri21 pri22 pri23 pri24 pri25 pri26 pri27 pri28 pri29 pri30 pri31 pri32 pri33 pri34 pri35 pri36 pri37 pri38 pri39 pri40 pri41 pri42 pri43 pri44 pri45 pri46 pri47 pri48 pri49 pri50 pri51 pri52 pri53 pri54 pri55 pri56 pri57 pri58 pri59 pri60 pri61 pri62 pri63 pri64 pri65 pri66 pri67 pri68 pri69 pri70 pri71 pri72 pri73 pri74 pri75 pri76 pri77 pri78 pri79 pri80). rename variables (v4021 v4029 v4037 v4045 v4053 v4061 v4069 v4077 v4085 v4093 v4101 v4109 v4117 v4125 v4133 v4141 v4149 v4157 v4165 v4173 v4181 v4189 v4197 v4205 v4213 v4221 v4229 v4237 v4245 v4253 v4261 v4269 v4277 v4285 v4293 v4301 v4309 v4317 v4325 v4333 v4341 v4349 v4357 v4365 v4373 v4381 v4389 v4397 v4405 v4413 v4421 v4429 v4437 v4445 v4453 v4461 v4469 v4477 v4485 v4493 v4501 v4509 v4517 v4525 v4533 v4541 v4549 v4557 v4565 v4573 v4581 v4589 v4597 v4605 v4613 v4621 v4629 v4637 v4645 v4653= secact1 secact2 secact3 secact4 secact5 secact6 secact7 secact8 secact9 secact10 secact11 secact12 secact13 secact14 secact15 secact16 secact17 secact18 secact19 secact20 secact21 secact22 secact23 secact24 secact25 secact26 secact27 secact28 secact29 secact30 secact31 secact32 secact33 secact34 secact35 secact36 secact37 secact38 secact39 secact40 secact41 secact42 secact43 secact44 secact45 secact46 secact47 secact48 secact49 secact50 secact51 secact52 secact53 secact54 secact55 secact56 secact57 secact58 secact59 secact60 secact61 secact62 secact63 secact64 secact65 secact66 secact67 secact68 secact69 secact70 secact71 secact72 secact73 secact74 secact75 secact76 secact77 secact78 secact79 secact80). rename variables (v4018 v4026 v4034 v4042 v4050 v4058 v4066 v4074 v4082 v4090 v4098 v4106 v4114 v4122 v4130 v4138 v4146 v4154 v4162 v4170 v4178 v4186 v4194 v4202 v4210 v4218 v4226 v4234 v4242 v4250 v4258 v4266 v4274 v4282 v4290 v4298 v4306 v4314 v4322 v4330 v4338 v4346 v4354 v4362 v4370 v4378 v4386 v4394 v4402 v4410 v4418 v4426 v4434 v4442 v4450 v4458 v4466 v4474 v4482 v4490 v4498 v4506 v4514 v4522 v4530 v4538 v4546 v4554 v4562 v4570 v4578 v4586 v4594 v4602 v4610 v4618 v4626 v4634 v4642 v4650= whr1 whr2 whr3 whr4 whr5 whr6 whr7 whr8 whr9 whr10 whr11 whr12 whr13 whr14 whr15 whr16 whr17 whr18 whr19 whr20 whr21 whr22 whr23 whr24 whr25 whr26 whr27 whr28 whr29 whr30 whr31 whr32 whr33 whr34 whr35 whr36 whr37 whr38 whr39 whr40 whr41 whr42 whr43 whr44 whr45 whr46 whr47 whr48 whr49 whr50 whr51 whr52 whr53 whr54 whr55 whr56 whr57 whr58 whr59 whr60 whr61 whr62 whr63 whr64 whr65 whr66 whr67 whr68 whr69 whr70 whr71 whr72 whr73 whr74 whr75 whr76 whr77 whr78 whr79 whr80). rename variables (v4019 v4027 v4035 v4043 v4051 v4059 v4067 v4075 v4083 v4091 v4099 v4107 v4115 v4123 v4131 v4139 v4147 v4155 v4163 v4171 v4179 v4187 v4195 v4203 v4211 v4219 v4227 v4235 v4243 v4251 v4259 v4267 v4275 v4283 v4291 v4299 v4307 v4315 v4323 v4331 v4339 v4347 v4355 v4363 v4371 v4379 v4387 v4395 v4403 v4411 v4419 v4427 v4435 v4443 v4451 v4459 v4467 v4475 v4483 v4491 v4499 v4507 v4515 v4523 v4531 v4539 v4547 v4555 v4563 v4571 v4579 v4587 v4595 v4603 v4611 v4619 v4627 v4635 v4643 v4651= wha1 wha2 wha3 wha4 wha5 wha6 wha7 wha8 wha9 wha10 wha11 wha12 wha13 wha14 wha15 wha16 wha17 wha18 wha19 wha20 wha21 wha22 wha23 wha24 wha25 wha26 wha27 wha28 wha29 wha30 wha31 wha32 wha33 wha34 wha35 wha36 wha37 wha38 wha39 wha40 wha41 wha42 wha43 wha44 wha45 wha46 wha47 wha48 wha49 wha50 wha51 wha52 wha53 wha54 wha55 wha56 wha57 wha58 wha59 wha60 wha61 wha62 wha63 wha64 wha65 wha66 wha67 wha68 wha69 wha70 wha71 wha72 wha73 wha74 wha75 wha76 wha77 wha78 wha79 wha80). rename variables (v4020 v4028 v4036 v4044 v4052 v4060 v4068 v4076 v4084 v4092 v4100 v4108 v4116 v4124 v4132 v4140 v4148 v4156 v4164 v4172 v4180 v4188 v4196 v4204 v4212 v4220 v4228 v4236 v4244 v4252 v4260 v4268 v4276 v4284 v4292 v4300 v4308 v4316 v4324 v4332 v4340 v4348 v4356 v4364 v4372 v4380 v4388 v4396 v4404 v4412 v4420 v4428 v4436 v4444 v4452 v4460 v4468 v4476 v4484 v4492 v4500 v4508 v4516 v4524 v4532 v4540 v4548 v4556 v4564 v4572 v4580 v4588 v4596 v4604 v4612 v4620 v4628 v4636 v4644 v4652= whb1 whb2 whb3 whb4 whb5 whb6 whb7 whb8 whb9 whb10 whb11 whb12 whb13 whb14 whb15 whb16 whb17 whb18 whb19 whb20 whb21 whb22 whb23 whb24 whb25 whb26 whb27 whb28 whb29 whb30 whb31 whb32 whb33 whb34 whb35 whb36 whb37 whb38 whb39 whb40 whb41 whb42 whb43 whb44 whb45 whb46 whb47 whb48 whb49 whb50 whb51 whb52 whb53 whb54 whb55 whb56 whb57 whb58 whb59 whb60 whb61 whb62 whb63 whb64 whb65 whb66 whb67 whb68 whb69 whb70 whb71 whb72 whb73 whb74 whb75 whb76 whb77 whb78 whb79 whb80). rename variables (v4016 v4024 v4032 v4040 v4048 v4056 v4064 v4072 v4080 v4088 v4096 v4104 v4112 v4120 v4128 v4136 v4144 v4152 v4160 v4168 v4176 v4184 v4192 v4200 v4208 v4216 v4224 v4232 v4240 v4248 v4256 v4264 v4272 v4280 v4288 v4296 v4304 v4312 v4320 v4328 v4336 v4344 v4352 v4360 v4368 v4376 v4384 v4392 v4400 v4408 v4416 v4424 v4432 v4440 v4448 v4456 v4464 v4472 v4480 v4488 v4496 v4504 v4512 v4520 v4528 v4536 v4544 v4552 v4560 v4568 v4576 v4584 v4592 v4600 v4608 v4616 v4624 v4632 v4640 v4648= str1 str2 str3 str4 str5 str6 str7 str8 str9 str10 str11 str12 str13 str14 str15 str16 str17 str18 str19 str20 str21 str22 str23 str24 str25 str26 str27 str28 str29 str30 str31 str32 str33 str34 str35 str36 str37 str38 str39 str40 str41 str42 str43 str44 str45 str46 str47 str48 str49 str50 str51 str52 str53 str54 str55 str56 str57 str58 str59 str60 str61 str62 str63 str64 str65 str66 str67 str68 str69 str70 str71 str72 str73 str74 str75 str76 str77 str78 str79 str80). rename variables (v4017 v4025 v4033 v4041 v4049 v4057 v4065 v4073 v4081 v4089 v4097 v4105 v4113 v4121 v4129 v4137 v4145 v4153 v4161 v4169 v4177 v4185 v4193 v4201 v4209 v4217 v4225 v4233 v4241 v4249 v4257 v4265 v4273 v4281 v4289 v4297 v4305 v4313 v4321 v4329 v4337 v4345 v4353 v4361 v4369 v4377 v4385 v4393 v4401 v4409 v4417 v4425 v4433 v4441 v4449 v4457 v4465 v4473 v4481 v4489 v4497 v4505 v4513 v4521 v4529 v4537 v4545 v4553 v4561 v4569 v4577 v4585 v4593 v4601 v4609 v4617 v4625 v4633 v4641 v4649= fin1 fin2 fin3 fin4 fin5 fin6 fin7 fin8 fin9 fin10 fin11 fin12 fin13 fin14 fin15 fin16 fin17 fin18 fin19 fin20 fin21 fin22 fin23 fin24 fin25 fin26 fin27 fin28 fin29 fin30 fin31 fin32 fin33 fin34 fin35 fin36 fin37 fin38 fin39 fin40 fin41 fin42 fin43 fin44 fin45 fin46 fin47 fin48 fin49 fin50 fin51 fin52 fin53 fin54 fin55 fin56 fin57 fin58 fin59 fin60 fin61 fin62 fin63 fin64 fin65 fin66 fin67 fin68 fin69 fin70 fin71 fin72 fin73 fin74 fin75 fin76 fin77 fin78 fin79 fin80). freq v4744 v3647 v3648 v4011. rename variable (v2 v3647 v3648 v403 v3940 = pid month cday sex mwage). compute usualday=-8. If v4744=1 usualday=1. If v4744=5 usualday=0. val lab usualday -8 missing -7 not asked of spouses 0 usual day 1 unusual day. cro usualday by v4744. compute survey=2. compute year=1976. compute wave=3. compute hhid=pid. recode month cday (sysmis=-8). recode v4011 (1=2) (2=3) (3=4) (4=5) (5=6) (6=7) (7=1) (ELSE=-8) INTO diaryday. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema1.sav'. sort cases by hhid pid. match files files=* files='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\emp.sav' /by wave hhid pid. execute. select if wave=3. var lab mwage income last month. recode mwage (sysmis=0). If mwage=0 and empstat=1 or empstat=2 mwage=-8. freq survey wave month cday year mwage. cro v4011 by diaryday. select if v7968=1. execute. vector pri = pri1 to pri80 /secact = secact1 to secact80 /whr = whr1 to whr80 /wha = wha1 to wha80 /whb = whb1 to whb80 /str = str1 to str80 /fin = fin1 to fin80. loop i=1 to 80. compute pri=pri(i). compute secact=secact(i). compute whr=whr(i). compute wha=wha(i). compute whb=whb(i). compute str=str(i). compute fin=fin(i). var lab pri main activity. var lab secact secondary activity. var lab whr location. var lab wha "with whom 1st mention". var lab whb "with whom 2nd mention". var lab str start time. var lab fin finish time. val lab pri secact 0 'no secondary activity' 11 'normal work-main job inc work at home' 12 'work at home' 22 'job search, look for work' 23 'apply for, collect unemployment benefit' 24 'apply for/collect other welfare' 59 '2nd job (& small jobs of FT students)' 69 'meals at work' 78 'time before or after work at workplace' 79 'other work related activity' 89 'work breaks' 97 'travel related to job search' 98 'travel to/from work making other stops' 99 'travel directly to/from workplace' 109 'meal preparation, cook or serve food' 119 'meal clean-up, do dishes' 129 'routine indoor cleaning & chores' 139 'routine clean house (outside)' 149 'laundry, iron, fold clothes' 161 'repair vehicle, home' 162 'exterior repairs or maintenance' 163 'car care, cleaning, tune up' 164 'home improvements, remodelling' 171 'gardening' 172 'care of pets, walk dogs' 173 'care of house plants' 191 'other domestic work' 192 'putter in yard' 193 'household paperwork, pay bills' 197 'other household chores' 209 'care of babies aged under 5 years old' 218 'care for children of mixed ages' 219 'care for child aged 5-17' 221 'teach child skill, show how to do things' 222 'help child with homework' 239 'read to/talk with child, listen to child' 249 'adult play with child inside' 259 'sport, walk, outside with child' 269 'medical care for child' 278 'unpaid babysitting' 279 'other child care' 299 'child care travel' 301 'groceries, supermarket, shop for food' 302 'other shopping for goods or clothes' 311 'shop for goods, durables, appliances' 312 'look to rent/purchase housing' 329 'personal care services' 339 'medical care, doctor, dentist' 341 'financial services' 342 'government services' 351 'auto repair and related services' 352 'clothes repair, cleaning services' 353 'appliance repair services' 354 'household repair services' 379 'other services, go to the dump' 389 'running errands' 399 'travel related to goods or services' 409 'wash, dress, get ready' 411 'medical care of self at home' 412 'medical care to adults in household' 421 'non-medical care to adult from household' 422 'help/care for adult from other household' 423 'help/care for neighbours or friends' 424 'help or care for unspecified adults' 439 'meals & snacks at own home' 449 'meal/snack away from home or workplace' 459 'main sleep' 469 'naps and resting' 481 'time gap greater than 10 minutes' 482 'personal, private, none of your business' 483 'sex, make out' 489 'other personal care' 498 'travel related to adult care' 499 'travel related to personal care' 509 'ft student attend classes' 519 'course/lecture' 549 'homework, study, research' 569 'other education' 579 'end of diary activity' 599 'other school-related travel' 601 'union/professional group meetings' 602 'other union/professional group activity' 611 'meetings of identity groups' 612 'other identity group activities' 621 'meeting of political or civic group' 622 'other political/civic activities' 631 'attend meetings of voluntary group' 632 'office volunteer' 633 'fundraising activity for voluntary group' 634 'direct help to persons as a member' 635 'other voluntary activities for group' 641 'religious charity group meeting' 642 'other religious charity activity' 643 'other religious group meetings' 644 'other religious group act/social' 651 'attend religious services' 652 'private worship' 661 'meetings of fraternal organisations' 662 'other fraternal organisation activities' 671 'meetings of family/youth organisations' 672 'other family/youth group activities' 689 'miscl volunteering' 698 'travel related membership activities' 699 'travel for other voluntary acts' 709 'attend sports event' 719 'other public event' 729 'movies' 739 'theater, concert, opera, ballet' 749 'museum, gallery, zoo, exhibition' 752 'visiting with others' 769 'parties, receptions' 771 'at bar, cocktail lounge' 772 'dancing' 789 'other socializing' 799 'travel related to public events' 801 'football, basket ball etc' 802 'tennis, squash etc' 803 'golf, miniature golf' 804 'swim, water ski' 805 'ski, skate' 806 'bowl, ping-pong' 807 'frisbee, catch' 808 'exercise, yoga' 811 'hunting' 812 'fishing' 813 'boat, sail, canoe' 814 'camping' 815 'snowmobile, dune buggy' 816 'gliding, ballooning' 817 'excursions' 818 'picnic' 821 'walking for pleasure' 822 'hiking' 823 'jogging, running' 824 'cycling' 825 'motorcycling' 826 'horseback riding' 831 'photography' 832 'work on cars as hobby' 833 'repair leisure equipment' 834 'collections, scrapbooks' 835 'carpentry/woodwork as hobby' 841 'preserve foodstuffs' 842 'knit, sew, needlework' 843 'sewing' 844 'care livestock/animals (not as farmer)' 851 'sculpture, painting, drawing' 852 'literature, write poetry' 861 'play musical instrument' 862 'sing' 863 'act' 864 'non-social dancing' 871 'play card games' 872 'play board games' 873 'play social games' 874 'puzzles' 888 'sports classes or training' 889 'other active leisure' 899 'travel related to sport or leisure' 909 'listen to radio' 919 'watch TV' 929 'listen to music, records' 939 'read books' 941 'read magazines, pamphlets' 942 'read - not specified what' 959 'read newspaper' 961 'phone conversations' 962 'face to face conversations' 963 'conversation with hh members' 979 'read or write letters' 981 'relax' 982 'think, plan, reflect' 983 'do nothing, sit' 984 'reported act of other, not self' 989 'other passing leisure, smoke dope' 999 'travel related to passive leisure'. val lab whr 1 'own home' 2 'in transit' 3 'at work' 4 'other home' 5 'restaurant or bar' 6 'indoor leisure place' 7 'outdoor leisure place' 8 'other place'. val lab wha whb 0 'alone' 1 'spouse/fiance' 2 'close family' 3 'other resident adult' 4 'other friend/relation' 5 'co-worker' 6 'organisation member' 7 'neighbour' 8 'service personnel' 9 'others'. xsave outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary3.sav' /keep = survey wave hhid pid diaryday cday month year pri secact whr wha whb str fin sex mwage v7972 v7973 v7976. end loop. execute. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary3.sav'. freq pri secact. recode secact pri (973=963) (952=942) (sysmis=-8). Do if (pri>0 and pri~=579) and secact=-8. compute secact=0. End if. vector dqcheck(3). Loop i=1 to 3. compute dqcheck(i)=0. end loop. var lab dqcheck1 "miss main, mode of transport". var lab dqcheck2 "miss main, 2nd act reported". var lab dqcheck3 "miss 20 min before/after travel". val lab dqcheck1 to dqcheck3 0 ordinary diary 1 includes pattern. freq dqcheck1 to dqcheck3. Do if pri=481 and secact>0. compute pri=secact. compute secact=0. compute dqcheck2=1. End if. freq secact pri dqcheck2. recode str fin (sysmis=-8). do if str=-8 and fin>-1. compute str=0. end if. desc str fin. compute ep1=0. if $casenum=1 or hhid~=lag(hhid) ep1=1. freq ep1. temp. select if pri=481. freq pri. Do if ep1=1 and (pri=-8 or pri=579). compute pri=481. compute str=0. compute fin=2400. End if. temp. select if pri=481. freq pri. select if pri>-8 and pri~=579. execute. *this select command just leaves the diaries as well as *markers for people who did not return their third wave *diary. sort cases by hhid pid str. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary3.sav'. sort cases by hhid. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\testspid3.sav' /BREAK=hhid /cday_1 = MEAN(cday). ********** **Wave 4** **********. GET FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\new1975long.sav' /keep v2 v403 v7968 v6028 v6029 v6030 v6762 v6033 v6041 v6049 v6057 v6065 v6073 v6081 v6089 v6097 v6105 v6113 v6121 v6129 v6137 v6145 v6153 v6161 v6169 v6177 v6185 v6193 v6201 v6209 v6217 v6225 v6233 v6241 v6249 v6257 v6265 v6273 v6281 v6289 v6297 v6305 v6313 v6321 v6329 v6337 v6345 v6353 v6361 v6369 v6377 v6385 v6393 v6401 v6409 v6417 v6425 v6433 v6441 v6449 v6457 v6465 v6473 v6481 v6489 v6497 v6505 v6513 v6521 v6529 v6537 v6545 v6553 v6561 v6569 v6577 v6585 v6593 v6601 v6609 v6617 v6625 v6633 v6641 v6649 v6657 v6665 v6039 v6047 v6055 v6063 v6071 v6079 v6087 v6095 v6103 v6111 v6119 v6127 v6135 v6143 v6151 v6159 v6167 v6175 v6183 v6191 v6199 v6207 v6215 v6223 v6231 v6239 v6247 v6255 v6263 v6271 v6279 v6287 v6295 v6303 v6311 v6319 v6327 v6335 v6343 v6351 v6359 v6367 v6375 v6383 v6391 v6399 v6407 v6415 v6423 v6431 v6439 v6447 v6455 v6463 v6471 v6479 v6487 v6495 v6503 v6511 v6519 v6527 v6535 v6543 v6551 v6559 v6567 v6575 v6583 v6591 v6599 v6607 v6615 v6623 v6631 v6639 v6647 v6655 v6663 v6671 v6036 v6044 v6052 v6060 v6068 v6076 v6084 v6092 v6100 v6108 v6116 v6124 v6132 v6140 v6148 v6156 v6164 v6172 v6180 v6188 v6196 v6204 v6212 v6220 v6228 v6236 v6244 v6252 v6260 v6268 v6276 v6284 v6292 v6300 v6308 v6316 v6324 v6332 v6340 v6348 v6356 v6364 v6372 v6380 v6388 v6396 v6404 v6412 v6420 v6428 v6436 v6444 v6452 v6460 v6468 v6476 v6484 v6492 v6500 v6508 v6516 v6524 v6532 v6540 v6548 v6556 v6564 v6572 v6580 v6588 v6596 v6604 v6612 v6620 v6628 v6636 v6644 v6652 v6660 v6668 v6037 v6045 v6053 v6061 v6069 v6077 v6085 v6093 v6101 v6109 v6117 v6125 v6133 v6141 v6149 v6157 v6165 v6173 v6181 v6189 v6197 v6205 v6213 v6221 v6229 v6237 v6245 v6253 v6261 v6269 v6277 v6285 v6293 v6301 v6309 v6317 v6325 v6333 v6341 v6349 v6357 v6365 v6373 v6381 v6389 v6397 v6405 v6413 v6421 v6429 v6437 v6445 v6453 v6461 v6469 v6477 v6485 v6493 v6501 v6509 v6517 v6525 v6533 v6541 v6549 v6557 v6565 v6573 v6581 v6589 v6597 v6605 v6613 v6621 v6629 v6637 v6645 v6653 v6661 v6669 v6038 v6046 v6054 v6062 v6070 v6078 v6086 v6094 v6102 v6110 v6118 v6126 v6134 v6142 v6150 v6158 v6166 v6174 v6182 v6190 v6198 v6206 v6214 v6222 v6230 v6238 v6246 v6254 v6262 v6270 v6278 v6286 v6294 v6302 v6310 v6318 v6326 v6334 v6342 v6350 v6358 v6366 v6374 v6382 v6390 v6398 v6406 v6414 v6422 v6430 v6438 v6446 v6454 v6462 v6470 v6478 v6486 v6494 v6502 v6510 v6518 v6526 v6534 v6542 v6550 v6558 v6566 v6574 v6582 v6590 v6598 v6606 v6614 v6622 v6630 v6638 v6646 v6654 v6662 v6670 v6034 v6042 v6050 v6058 v6066 v6074 v6082 v6090 v6098 v6106 v6114 v6122 v6130 v6138 v6146 v6154 v6162 v6170 v6178 v6186 v6194 v6202 v6210 v6218 v6226 v6234 v6242 v6250 v6258 v6266 v6274 v6282 v6290 v6298 v6306 v6314 v6322 v6330 v6338 v6346 v6354 v6362 v6370 v6378 v6386 v6394 v6402 v6410 v6418 v6426 v6434 v6442 v6450 v6458 v6466 v6474 v6482 v6490 v6498 v6506 v6514 v6522 v6530 v6538 v6546 v6554 v6562 v6570 v6578 v6586 v6594 v6602 v6610 v6618 v6626 v6634 v6642 v6650 v6658 v6666 v6035 v6043 v6051 v6059 v6067 v6075 v6083 v6091 v6099 v6107 v6115 v6123 v6131 v6139 v6147 v6155 v6163 v6171 v6179 v6187 v6195 v6203 v6211 v6219 v6227 v6235 v6243 v6251 v6259 v6267 v6275 v6283 v6291 v6299 v6307 v6315 v6323 v6331 v6339 v6347 v6355 v6363 v6371 v6379 v6387 v6395 v6403 v6411 v6419 v6427 v6435 v6443 v6451 v6459 v6467 v6475 v6483 v6491 v6499 v6507 v6515 v6523 v6531 v6539 v6547 v6555 v6563 v6571 v6579 v6587 v6595 v6603 v6611 v6619 v6627 v6635 v6643 v6651 v6659 v6667 v7972 v7973 v7976. rename variables (v6033 v6041 v6049 v6057 v6065 v6073 v6081 v6089 v6097 v6105 v6113 v6121 v6129 v6137 v6145 v6153 v6161 v6169 v6177 v6185 v6193 v6201 v6209 v6217 v6225 v6233 v6241 v6249 v6257 v6265 v6273 v6281 v6289 v6297 v6305 v6313 v6321 v6329 v6337 v6345 v6353 v6361 v6369 v6377 v6385 v6393 v6401 v6409 v6417 v6425 v6433 v6441 v6449 v6457 v6465 v6473 v6481 v6489 v6497 v6505 v6513 v6521 v6529 v6537 v6545 v6553 v6561 v6569 v6577 v6585 v6593 v6601 v6609 v6617 v6625 v6633 v6641 v6649 v6657 v6665= pri1 pri2 pri3 pri4 pri5 pri6 pri7 pri8 pri9 pri10 pri11 pri12 pri13 pri14 pri15 pri16 pri17 pri18 pri19 pri20 pri21 pri22 pri23 pri24 pri25 pri26 pri27 pri28 pri29 pri30 pri31 pri32 pri33 pri34 pri35 pri36 pri37 pri38 pri39 pri40 pri41 pri42 pri43 pri44 pri45 pri46 pri47 pri48 pri49 pri50 pri51 pri52 pri53 pri54 pri55 pri56 pri57 pri58 pri59 pri60 pri61 pri62 pri63 pri64 pri65 pri66 pri67 pri68 pri69 pri70 pri71 pri72 pri73 pri74 pri75 pri76 pri77 pri78 pri79 pri80). rename variables (v6039 v6047 v6055 v6063 v6071 v6079 v6087 v6095 v6103 v6111 v6119 v6127 v6135 v6143 v6151 v6159 v6167 v6175 v6183 v6191 v6199 v6207 v6215 v6223 v6231 v6239 v6247 v6255 v6263 v6271 v6279 v6287 v6295 v6303 v6311 v6319 v6327 v6335 v6343 v6351 v6359 v6367 v6375 v6383 v6391 v6399 v6407 v6415 v6423 v6431 v6439 v6447 v6455 v6463 v6471 v6479 v6487 v6495 v6503 v6511 v6519 v6527 v6535 v6543 v6551 v6559 v6567 v6575 v6583 v6591 v6599 v6607 v6615 v6623 v6631 v6639 v6647 v6655 v6663 v6671= secact1 secact2 secact3 secact4 secact5 secact6 secact7 secact8 secact9 secact10 secact11 secact12 secact13 secact14 secact15 secact16 secact17 secact18 secact19 secact20 secact21 secact22 secact23 secact24 secact25 secact26 secact27 secact28 secact29 secact30 secact31 secact32 secact33 secact34 secact35 secact36 secact37 secact38 secact39 secact40 secact41 secact42 secact43 secact44 secact45 secact46 secact47 secact48 secact49 secact50 secact51 secact52 secact53 secact54 secact55 secact56 secact57 secact58 secact59 secact60 secact61 secact62 secact63 secact64 secact65 secact66 secact67 secact68 secact69 secact70 secact71 secact72 secact73 secact74 secact75 secact76 secact77 secact78 secact79 secact80). rename variables (v6036 v6044 v6052 v6060 v6068 v6076 v6084 v6092 v6100 v6108 v6116 v6124 v6132 v6140 v6148 v6156 v6164 v6172 v6180 v6188 v6196 v6204 v6212 v6220 v6228 v6236 v6244 v6252 v6260 v6268 v6276 v6284 v6292 v6300 v6308 v6316 v6324 v6332 v6340 v6348 v6356 v6364 v6372 v6380 v6388 v6396 v6404 v6412 v6420 v6428 v6436 v6444 v6452 v6460 v6468 v6476 v6484 v6492 v6500 v6508 v6516 v6524 v6532 v6540 v6548 v6556 v6564 v6572 v6580 v6588 v6596 v6604 v6612 v6620 v6628 v6636 v6644 v6652 v6660 v6668= whr1 whr2 whr3 whr4 whr5 whr6 whr7 whr8 whr9 whr10 whr11 whr12 whr13 whr14 whr15 whr16 whr17 whr18 whr19 whr20 whr21 whr22 whr23 whr24 whr25 whr26 whr27 whr28 whr29 whr30 whr31 whr32 whr33 whr34 whr35 whr36 whr37 whr38 whr39 whr40 whr41 whr42 whr43 whr44 whr45 whr46 whr47 whr48 whr49 whr50 whr51 whr52 whr53 whr54 whr55 whr56 whr57 whr58 whr59 whr60 whr61 whr62 whr63 whr64 whr65 whr66 whr67 whr68 whr69 whr70 whr71 whr72 whr73 whr74 whr75 whr76 whr77 whr78 whr79 whr80). rename variables (v6037 v6045 v6053 v6061 v6069 v6077 v6085 v6093 v6101 v6109 v6117 v6125 v6133 v6141 v6149 v6157 v6165 v6173 v6181 v6189 v6197 v6205 v6213 v6221 v6229 v6237 v6245 v6253 v6261 v6269 v6277 v6285 v6293 v6301 v6309 v6317 v6325 v6333 v6341 v6349 v6357 v6365 v6373 v6381 v6389 v6397 v6405 v6413 v6421 v6429 v6437 v6445 v6453 v6461 v6469 v6477 v6485 v6493 v6501 v6509 v6517 v6525 v6533 v6541 v6549 v6557 v6565 v6573 v6581 v6589 v6597 v6605 v6613 v6621 v6629 v6637 v6645 v6653 v6661 v6669= wha1 wha2 wha3 wha4 wha5 wha6 wha7 wha8 wha9 wha10 wha11 wha12 wha13 wha14 wha15 wha16 wha17 wha18 wha19 wha20 wha21 wha22 wha23 wha24 wha25 wha26 wha27 wha28 wha29 wha30 wha31 wha32 wha33 wha34 wha35 wha36 wha37 wha38 wha39 wha40 wha41 wha42 wha43 wha44 wha45 wha46 wha47 wha48 wha49 wha50 wha51 wha52 wha53 wha54 wha55 wha56 wha57 wha58 wha59 wha60 wha61 wha62 wha63 wha64 wha65 wha66 wha67 wha68 wha69 wha70 wha71 wha72 wha73 wha74 wha75 wha76 wha77 wha78 wha79 wha80). rename variables (v6038 v6046 v6054 v6062 v6070 v6078 v6086 v6094 v6102 v6110 v6118 v6126 v6134 v6142 v6150 v6158 v6166 v6174 v6182 v6190 v6198 v6206 v6214 v6222 v6230 v6238 v6246 v6254 v6262 v6270 v6278 v6286 v6294 v6302 v6310 v6318 v6326 v6334 v6342 v6350 v6358 v6366 v6374 v6382 v6390 v6398 v6406 v6414 v6422 v6430 v6438 v6446 v6454 v6462 v6470 v6478 v6486 v6494 v6502 v6510 v6518 v6526 v6534 v6542 v6550 v6558 v6566 v6574 v6582 v6590 v6598 v6606 v6614 v6622 v6630 v6638 v6646 v6654 v6662 v6670= whb1 whb2 whb3 whb4 whb5 whb6 whb7 whb8 whb9 whb10 whb11 whb12 whb13 whb14 whb15 whb16 whb17 whb18 whb19 whb20 whb21 whb22 whb23 whb24 whb25 whb26 whb27 whb28 whb29 whb30 whb31 whb32 whb33 whb34 whb35 whb36 whb37 whb38 whb39 whb40 whb41 whb42 whb43 whb44 whb45 whb46 whb47 whb48 whb49 whb50 whb51 whb52 whb53 whb54 whb55 whb56 whb57 whb58 whb59 whb60 whb61 whb62 whb63 whb64 whb65 whb66 whb67 whb68 whb69 whb70 whb71 whb72 whb73 whb74 whb75 whb76 whb77 whb78 whb79 whb80). rename variables (v6034 v6042 v6050 v6058 v6066 v6074 v6082 v6090 v6098 v6106 v6114 v6122 v6130 v6138 v6146 v6154 v6162 v6170 v6178 v6186 v6194 v6202 v6210 v6218 v6226 v6234 v6242 v6250 v6258 v6266 v6274 v6282 v6290 v6298 v6306 v6314 v6322 v6330 v6338 v6346 v6354 v6362 v6370 v6378 v6386 v6394 v6402 v6410 v6418 v6426 v6434 v6442 v6450 v6458 v6466 v6474 v6482 v6490 v6498 v6506 v6514 v6522 v6530 v6538 v6546 v6554 v6562 v6570 v6578 v6586 v6594 v6602 v6610 v6618 v6626 v6634 v6642 v6650 v6658 v6666= str1 str2 str3 str4 str5 str6 str7 str8 str9 str10 str11 str12 str13 str14 str15 str16 str17 str18 str19 str20 str21 str22 str23 str24 str25 str26 str27 str28 str29 str30 str31 str32 str33 str34 str35 str36 str37 str38 str39 str40 str41 str42 str43 str44 str45 str46 str47 str48 str49 str50 str51 str52 str53 str54 str55 str56 str57 str58 str59 str60 str61 str62 str63 str64 str65 str66 str67 str68 str69 str70 str71 str72 str73 str74 str75 str76 str77 str78 str79 str80). rename variables (v6035 v6043 v6051 v6059 v6067 v6075 v6083 v6091 v6099 v6107 v6115 v6123 v6131 v6139 v6147 v6155 v6163 v6171 v6179 v6187 v6195 v6203 v6211 v6219 v6227 v6235 v6243 v6251 v6259 v6267 v6275 v6283 v6291 v6299 v6307 v6315 v6323 v6331 v6339 v6347 v6355 v6363 v6371 v6379 v6387 v6395 v6403 v6411 v6419 v6427 v6435 v6443 v6451 v6459 v6467 v6475 v6483 v6491 v6499 v6507 v6515 v6523 v6531 v6539 v6547 v6555 v6563 v6571 v6579 v6587 v6595 v6603 v6611 v6619 v6627 v6635 v6643 v6651 v6659 v6667= fin1 fin2 fin3 fin4 fin5 fin6 fin7 fin8 fin9 fin10 fin11 fin12 fin13 fin14 fin15 fin16 fin17 fin18 fin19 fin20 fin21 fin22 fin23 fin24 fin25 fin26 fin27 fin28 fin29 fin30 fin31 fin32 fin33 fin34 fin35 fin36 fin37 fin38 fin39 fin40 fin41 fin42 fin43 fin44 fin45 fin46 fin47 fin48 fin49 fin50 fin51 fin52 fin53 fin54 fin55 fin56 fin57 fin58 fin59 fin60 fin61 fin62 fin63 fin64 fin65 fin66 fin67 fin68 fin69 fin70 fin71 fin72 fin73 fin74 fin75 fin76 fin77 fin78 fin79 fin80). freq v6028 v6029 v6030 v6762. rename variable (v2 v6029 v6030 v403 = pid month cday sex). compute usualday=-8. If v6762 =1 usualday=1. If v6762 =5 usualday=0. val lab usualday -8 missing -7 not asked of spouses 0 usual day 1 unusual day. cro usualday by v6762. compute survey=2. compute year=1976. compute wave=4. compute hhid=pid. recode month cday (sysmis=-8). recode v6028 (1=2) (2=3) (3=4) (4=5) (5=6) (6=7) (7=1) (ELSE=-8) INTO diaryday. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema1.sav'. sort cases by hhid pid. compute mwage =-9. var lab mwage income last month. freq survey wave month cday year mwage. cro v6028 by diaryday. select if v7968=1. execute. vector pri = pri1 to pri80 /secact = secact1 to secact80 /whr = whr1 to whr80 /wha = wha1 to wha80 /whb = whb1 to whb80 /str = str1 to str80 /fin = fin1 to fin80. loop i=1 to 80. compute pri=pri(i). compute secact=secact(i). compute whr=whr(i). compute wha=wha(i). compute whb=whb(i). compute str=str(i). compute fin=fin(i). var lab pri main activity. var lab secact secondary activity. var lab whr location. var lab wha "with whom 1st mention". var lab whb "with whom 2nd mention". var lab str start time. var lab fin finish time. val lab pri secact 0 'no secondary activity' 11 'normal work-main job inc work at home' 12 'work at home' 22 'job search, look for work' 23 'apply for, collect unemployment benefit' 24 'apply for/collect other welfare' 59 '2nd job (& small jobs of FT students)' 69 'meals at work' 78 'time before or after work at workplace' 79 'other work related activity' 89 'work breaks' 97 'travel related to job search' 98 'travel to/from work making other stops' 99 'travel directly to/from workplace' 109 'meal preparation, cook or serve food' 119 'meal clean-up, do dishes' 129 'routine indoor cleaning & chores' 139 'routine clean house (outside)' 149 'laundry, iron, fold clothes' 161 'repair vehicle, home' 162 'exterior repairs or maintenance' 163 'car care, cleaning, tune up' 164 'home improvements, remodelling' 171 'gardening' 172 'care of pets, walk dogs' 173 'care of house plants' 191 'other domestic work' 192 'putter in yard' 193 'household paperwork, pay bills' 197 'other household chores' 209 'care of babies aged under 5 years old' 218 'care for children of mixed ages' 219 'care for child aged 5-17' 221 'teach child skill, show how to do things' 222 'help child with homework' 239 'read to/talk with child, listen to child' 249 'adult play with child inside' 259 'sport, walk, outside with child' 269 'medical care for child' 278 'unpaid babysitting' 279 'other child care' 299 'child care travel' 301 'groceries, supermarket, shop for food' 302 'other shopping for goods or clothes' 311 'shop for goods, durables, appliances' 312 'look to rent/purchase housing' 329 'personal care services' 339 'medical care, doctor, dentist' 341 'financial services' 342 'government services' 351 'auto repair and related services' 352 'clothes repair, cleaning services' 353 'appliance repair services' 354 'household repair services' 379 'other services, go to the dump' 389 'running errands' 399 'travel related to goods or services' 409 'wash, dress, get ready' 411 'medical care of self at home' 412 'medical care to adults in household' 421 'non-medical care to adult from household' 422 'help/care for adult from other household' 423 'help/care for neighbours or friends' 424 'help or care for unspecified adults' 439 'meals & snacks at own home' 449 'meal/snack away from home or workplace' 459 'main sleep' 469 'naps and resting' 481 'time gap greater than 10 minutes' 482 'personal, private, none of your business' 483 'sex, make out' 489 'other personal care' 498 'travel related to adult care' 499 'travel related to personal care' 509 'ft student attend classes' 519 'course/lecture' 549 'homework, study, research' 569 'other education' 579 'end of diary activity' 599 'other school-related travel' 601 'union/professional group meetings' 602 'other union/professional group activity' 611 'meetings of identity groups' 612 'other identity group activities' 621 'meeting of political or civic group' 622 'other political/civic activities' 631 'attend meetings of voluntary group' 632 'office volunteer' 633 'fundraising activity for voluntary group' 634 'direct help to persons as a member' 635 'other voluntary activities for group' 641 'religious charity group meeting' 642 'other religious charity activity' 643 'other religious group meetings' 644 'other religious group act/social' 651 'attend religious services' 652 'private worship' 661 'meetings of fraternal organisations' 662 'other fraternal organisation activities' 671 'meetings of family/youth organisations' 672 'other family/youth group activities' 689 'miscl volunteering' 698 'travel related membership activities' 699 'travel for other voluntary acts' 709 'attend sports event' 719 'other public event' 729 'movies' 739 'theater, concert, opera, ballet' 749 'museum, gallery, zoo, exhibition' 752 'visiting with others' 769 'parties, receptions' 771 'at bar, cocktail lounge' 772 'dancing' 789 'other socializing' 799 'travel related to public events' 801 'football, basket ball etc' 802 'tennis, squash etc' 803 'golf, miniature golf' 804 'swim, water ski' 805 'ski, skate' 806 'bowl, ping-pong' 807 'frisbee, catch' 808 'exercise, yoga' 811 'hunting' 812 'fishing' 813 'boat, sail, canoe' 814 'camping' 815 'snowmobile, dune buggy' 816 'gliding, ballooning' 817 'excursions' 818 'picnic' 821 'walking for pleasure' 822 'hiking' 823 'jogging, running' 824 'cycling' 825 'motorcycling' 826 'horseback riding' 831 'photography' 832 'work on cars as hobby' 833 'repair leisure equipment' 834 'collections, scrapbooks' 835 'carpentry/woodwork as hobby' 841 'preserve foodstuffs' 842 'knit, sew, needlework' 843 'sewing' 844 'care livestock/animals (not as farmer)' 851 'sculpture, painting, drawing' 852 'literature, write poetry' 861 'play musical instrument' 862 'sing' 863 'act' 864 'non-social dancing' 871 'play card games' 872 'play board games' 873 'play social games' 874 'puzzles' 888 'sports classes or training' 889 'other active leisure' 899 'travel related to sport or leisure' 909 'listen to radio' 919 'watch TV' 929 'listen to music, records' 939 'read books' 941 'read magazines, pamphlets' 942 'read - not specified what' 959 'read newspaper' 961 'phone conversations' 962 'face to face conversations' 963 'conversation with hh members' 979 'read or write letters' 981 'relax' 982 'think, plan, reflect' 983 'do nothing, sit' 984 'reported act of other, not self' 989 'other passing leisure, smoke dope' 999 'travel related to passive leisure'. val lab whr 1 'own home' 2 'in transit' 3 'at work' 4 'other home' 5 'restaurant or bar' 6 'indoor leisure place' 7 'outdoor leisure place' 8 'other place'. val lab wha whb 0 'alone' 1 'spouse/fiance' 2 'close family' 3 'other resident adult' 4 'other friend/relation' 5 'co-worker' 6 'organisation member' 7 'neighbour' 8 'service personnel' 9 'others'. xsave outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary4.sav' /keep = survey wave hhid pid diaryday cday month year pri secact whr wha whb str fin sex mwage v7972 v7973 v7976. end loop. execute. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary4.sav'. freq pri secact. recode pri secact (sysmis=-8). Do if (pri>0 and pri~=579) and secact=-8. compute secact=0. End if. vector dqcheck(3). Loop i=1 to 3. compute dqcheck(i)=0. end loop. var lab dqcheck1 "miss main, mode of transport". var lab dqcheck2 "miss main, 2nd act reported". var lab dqcheck3 "miss 20 min before/after travel". val lab dqcheck1 to dqcheck3 0 ordinary diary 1 includes pattern. freq dqcheck1 to dqcheck3. Do if pri=481 and secact>0. compute pri=secact. compute secact=0. compute dqcheck2=1. End if. freq pri secact dqcheck2. recode str fin (sysmis=-8). do if str=-8 and fin>-1. compute str=0. end if. desc str fin. compute ep1=0. if $casenum=1 or hhid~=lag(hhid) ep1=1. freq ep1. temp. select if pri=481. freq pri. Do if ep1=1 and (pri=-8 or pri=579). compute pri=481. compute str=0. compute fin=2400. End if. temp. select if pri=481. freq pri. select if pri>-8 and pri~=579. execute. *this select command just leaves the diaries as well as *markers for people who did not return their fourth wave *diary. sort cases by hhid pid str. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary4.sav'. sort cases by hhid. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\testspid4.sav' /BREAK=hhid pid /cday_1 = MEAN(cday). ************************************** **merge files into 1 1975 diary file** **************************************. ADD FILES /FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary1.sav' /FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary2.sav' /FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary3.sav' /FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\diary4.sav'. EXECUTE. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\alldiary.sav'. ***************************************************** **finish transformation into harmonised file format** *****************************************************. Get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\alldiary.sav'. missing values all (). recode whr wha whb (sysmis=-8). Compute epnum=1. var lab epnum episode number. Do if hhid=lag(hhid) and wave=lag(wave). compute epnum=lag(epnum)+1. end if. freq epnum. freq str fin. *there are 4 impossible time codes, two start and two finish times *of -8. These cases fall in 2 diaries, in one case marking an extra *line of error, and in the other marking a non-existant diary. These *bad lines, as well as subsequently identified bad lines, are eliminated. compute drop=0. If str=-8 or fin=-8 drop=1. If wave=2 and hhid=276 and epnum=4 drop=1. If wave=3 and hhid=281 and epnum=17 drop=1. If wave=4 and hhid=1297 and epnum=17 drop=1. select if drop=0. freq wave. *fix diary errors. Do if wave=1 and hhid=68 and str=0. compute fin=115. Else if wave=1 and hhid=68 and str=1235. compute fin=1238. Else if wave=1 and hhid=68 and str=1238. compute fin=1535. End if. Do if wave=3 and hhid=16 and str=1920. compute fin=2000. Else if wave=3 and hhid=16 and str=2020. compute fin=2040. Else if wave=3 and hhid=16 and str=2040. compute fin=2400. End if. Do if wave=2 and hhid=139 and str=0. compute fin=410. Else if wave=2 and hhid=139 and str=410. compute fin=430. Else if wave=2 and hhid=139 and str=450. compute fin=530. End if. Do if wave=2 and hhid=204 and str=0. compute fin=130. Else if wave=2 and hhid=204 and str=1120. compute fin=1245. Else if wave=2 and hhid=204 and str=1245. compute fin=1300. End if. Do if wave=2 and hhid=269 and str=0. compute fin=100. Else if wave=2 and hhid=269 and str=1215. compute fin=1230. Else if wave=2 and hhid=269 and str=1230. compute fin=1235. End if. Do if wave=2 and hhid=276 and str=720 and fin=810. compute str=730. Else if wave=2 and hhid=276 and str=900. compute fin=1230. Else if wave=2 and hhid=276 and str=1230. compute fin=1245. Else if wave=2 and hhid=276 and str=1245. compute fin=1430. End if. Do if wave=1 and hhid=320 and str=1010. compute fin=1038. Else if wave=1 and hhid=320 and str=1038. compute fin=1040. Else if wave=1 and hhid=320 and str=1040. compute fin=1145. End if. Do if wave=1 and hhid=591 and str=1630. compute fin=1635. Else if wave=1 and hhid=591 and str=1635. compute fin=1650. Else if wave=1 and hhid=591 and str=1650. compute fin=1820. End if. Do if wave=1 and hhid=642 and str=0. compute fin=800. Else if wave=1 and hhid=642 and str=1200. compute fin=1210. Else if wave=1 and hhid=642 and str=1210. compute fin=1220. End if. Do if wave=1 and hhid=672 and str=1815. compute fin=1830. Else if wave=1 and hhid=672 and str=1830. compute fin=1840. Else if wave=1 and hhid=672 and str=1840. compute fin=1910. End if. Do if wave=2 and hhid=871 and str=2130. compute fin=2142. Else if wave=2 and hhid=871 and str=2142. compute fin=2145. Else if wave=2 and hhid=871 and str=2145. compute fin=2150. End if. Do if wave=3 and hhid=1058 and str=1610. compute fin=1725. Else if wave=3 and hhid=1058 and str=1810. compute fin=1815. Else if wave=3 and hhid=1058 and str=1850. compute fin=1900. End if. Do if wave=2 and hhid=1384 and str=0. compute fin=630. Else if wave=2 and hhid=1384 and str=800. compute fin=1230. Else if wave=2 and hhid=1384 and str=1230. compute fin=1400. End if. Do if wave=3 and hhid=702 and epnum=2. compute str=1430. End if. Execute. Compute start=trunc(str/100)*60+(str-(trunc(str/100))*100). Compute end=trunc(fin/100)*60+(fin-(trunc(fin/100))*100). Execute. temp. select if start>0 and start<61. cro start by str. temp. select if end>0 and end<61. cro end by fin. desc end start. sort cases by wave hhid str. *create duration variable and recreate episode number *to address fixed problem cases. Compute epnum=1. var lab epnum episode number. Do if hhid=lag(hhid) and wave=lag(wave). compute epnum=lag(epnum)+1. end if. freq epnum. compute time=end-start. var lab time duration of activity in minutes. desc time. *note there are 21 cases with time <=0 and 1 with 1440 minutes. *these bad time cases addressed above. temp. select if time=1440. freq pri. *the one case of the 1 activity diary is 24 hours of sleep *and there are 1492 instances where main respondent diaries *were not returned. *create time use variables. compute main=-5. compute sec=-5. compute inout=-5. compute eloc=-5. compute mtrav=-9. compute alone=0. compute infant=0. compute child=0. compute sppart=0. compute clsfam=0. compute hhadult=0. compute animal=0. compute shoprof=0. compute cowork=0. compute wellknw=0. compute otherp=0. compute unknwp=-9. compute clockst= str. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema1.sav'. execute. cro wha by whb. *while the code frame losts code 0 as meaning alone, no code 0 *appears in the data. Most -8 codes must indicate alone, though *clearly people are not alone when interacting with other *people. Thus, when both who else is present variables are *listed as missing and all other who else is present variables *are 0, alone is coded as =1. If pri=209 or pri=218 or secact=209 or secact=218 infant=1. freq infant. If pri=218 or pri=221 or pri=222 or pri=239 or pri=249 or pri=259 or pri=269 or pri=278 or pri=209 or secact=218 or secact=221 or secact=222 or secact=239 or secact=249 or secact=259 or secact=269 or secact=278 or secact=209 child=1. freq child. If wha=1 or whb=1 sppart=1. freq sppart. If wha=1 or whb=1 or wha=2 or whb=2 clsfam=1. freq clsfam. If wha=3 or whb=3 hhadult=1. freq hhadult. if pri=172 or pri=826 or pri=844 or secact=172 or secact=826 or secact=844 animal=1. freq animal. If wha=-8 and whb=-8 and infant=0 and child=0 alone=1. freq alone. if ((pri=301 or pri=302) and whr>1) or pri=311 or pri=312 or pri=329 or pri=339 or pri=341 or pri=342 or pri=351 or pri=352 or pri=353 or pri=354 or pri=379 or pri=709 or pri=729 or pri=739 or pri=749 or pri=719 or pri=771 or ((secact=301 or secact=302) and whr>1) or secact=311 or secact=312 or secact=329 or secact=339 or secact=341 or secact=342 or secact=351 or secact=352 or secact=353 or secact=354 or secact=379 or secact=709 or secact=729 or secact=739 or secact=749 or secact=719 or secact=771 or wha=8 or whb=8 shoprof=1. freq shoprof. temp. select if shoprof=1. freq pri. If wha=5 or whb=5 or wha=6 or whb=6 cowork=1. freq cowork. If pri=412 or pri=421 or pri=422 or pri=423 or pri=424 or pri=752 or pri=769 or pri=962 or pri=963 or pri=984 or secact=412 or secact=421 or secact=422 or secact=423 or secact=424 or secact=752 or secact=769 or secact=962 or secact=963 or secact=984 or clsfam=1 or hhadult=1 or cowork=1 or wha=4 or whb=4 or wha=7 or whb=7 wellknw=1. freq wellknw. If pri=509 or pri=519 or pri=601 or pri=611 or pri=621 or pri=631 or pri=634 or pri=641 or pri=643 or pri=651 or pri=661 or pri=671 or pri=709 or pri=771 or pri=772 or pri=801 or pri=802 or pri=873 or pri=888 or whr=5 or secact=509 or secact=519 or secact=601 or secact=611 or secact=621 or secact=631 or secact=634 or secact=641 or secact=643 or secact=651 or secact=661 or secact=671 or secact=709 or secact=771 or secact=772 or secact=801 or secact=802 or secact=873 or secact=888 or wha=9 or whb=9 otherp=1. freq otherp. temp. select if otherp=1. freq pri. *this coding syntax has a hierarchy - coded as outside if possible *first, and if not possible to code as outside, then if possible to *code as in transit, and if not possible, then to code as inside, *and residual set to -8. Do if whr=7 or pri=139 or pri=162 or pri=164 or pri=171 or pri=192 or pri=259 or pri=811 or pri=812 or pri=813 or pri=814 or pri=815 or pri=816 or pri=818 or pri=822 or pri=824 or pri=825 or pri=826 or secact=139 or secact=162 or secact=164 or secact=171 or secact=192 or secact=259 or secact=811 or secact=812 or secact=813 or secact=814 or secact=815 or secact=816 or secact=818 or secact=822 or secact=824 or secact=825 or secact=826 or ( ( (pri>800 and pri<810) or (secact>800 and secact<810) ) and whr=8) or ((pri=709 or pri=789 or secact=709 or secact=789) and whr~=6). compute inout=1. Else if whr=2 or (pri>96 and pri<100) or pri=299 or pri=399 or pri=498 or pri=499 or pri=599 or pri=698 or pri=699 or pri=799 or pri=817 or pri=899 or pri=999 or (secact>96 and secact<100) or secact=817 or secact=299 or secact=399 or secact=498 or secact=499 or secact=599 or secact=698 or secact=699 or secact=799 or secact=899 or secact=999. compute inout=3. Else if whr=1 or (whr>2 and whr<7) or whr=8 or pri=69 or pri=78 or pri=89 or pri=129 or pri=161 or pri=173 or pri=191 or pri=249 or pri=302 or pri=312 or pri=329 or pri=339 or pri=341 or pri=342 or pri=351 or pri=509 or pri=519 or pri=709 or pri=719 or pri=729 or pri=739 or pri=749 or pri=771 or pri=803 or pri=805 or secact=129 or secact=161 or secact=173 or secact=191 or secact=249 or secact=509 or secact=519 or secact=302 or secact=312 or secact=329 or secact=339 or secact=341 or secact=342 or secact=351 or secact=69 or secact=78 or secact=89 or secact=709 or secact=719 or secact=729 or secact=739 or secact=749 or secact=771 or secact=803 or secact=805. compute inout=2. Else. compute inout=-8. End if. freq inout. temp. select if inout=1. freq pri secact whr. temp. select if inout=2. freq pri secact whr. temp. select if inout=3. freq pri secact whr. temp. select if inout=-8. freq pri secact whr. *note that medical services are not treated like other *services as a marker of at services when the location *is other or missing. The reason is that in some cases *diarists appear to have completed diaries in hospital, *and this recoding creates a false impression of a *change of location when the main activity in the *hospital changes. Do if whr=1. compute eloc=1. Else if whr=4. compute eloc=2. Else if pri=12 or pri=439. compute eloc=1. Else if whr=3 or pri=69 or pri=78 or pri=89. compute eloc=3. Else if whr=5 or pri=771. compute eloc=6. Else if whr=2 or pri=97 or pri=98 or pri=99 or pri=299 or pri=399 or pri=498 or pri=499 or pri=599 or pri=698 or pri=699 or pri=799 or pri=817 or pri=899 or pri=999. compute eloc=8. Else if pri=509 or pri=519. compute eloc=4. Else if (pri>300 and pri<339) or (pri>339 and pri<353) or pri=379. compute eloc=5. Else if whr>0. compute eloc=9. Else. compute eloc=-8. End if. freq eloc. cro whr by eloc. Do if pri=482 or pri=483 or pri=489. Compute main=1. Else if pri=459. Compute main=3. Else if pri=469. Compute main=5. Else if pri=409. Compute main=6. Else if pri=411. Compute main=7. Else if pri=69. Compute main=8. Else if pri=439 or pri=449. Compute main=9. Else if (pri=11 and (whr>1 or whr=-8)) or (pri=79 and (whr>1 or whr=-8)). Compute main=10. Else if (pri=11 and whr=1) or (pri=79 and whr=1) or pri=12. Compute main=11. Else if pri=59. Compute main=12. Else if pri=89. Compute main=13. Else if pri=78. Compute main=14. Else if pri>21 and pri<25. Compute main=15. Else if pri=509. Compute main=16. Else if pri=549. Compute main=17. Else if pri=519. Compute main=18. Else if pri=569. Compute main=19. Else if pri=109. Compute main=20. Else if pri=119. Compute main=21. Else if pri=129 or pri=139. Compute main=22. Else if pri=149. Compute main=23. Else if pri>160 and pri<165. Compute main=24. Else if pri=191 or pri=193 or pri=197 or pri=389. Compute main=25. Else if pri=301 or pri=302. Compute main=26. Else if pri=311 or pri=312. Compute main=27. Else if pri=329. Compute main=28. Else if pri=339. Compute main=29. Else if pri>350 and pri<355. Compute main=30. Else if pri=341 or pri=342. Compute main=31. Else if pri=379. Compute main=32. Else if pri=209. Compute main=33. Else if pri=218 or pri=219. Compute main=34. Else if pri=269. Compute main=35. Else if pri=249. Compute main=36. Else if pri=221 or pri=222. Compute main=37. Else if pri=239. Compute main=38. Else if pri=278 or pri=279. Compute main=39. Else if pri=412 or (pri>420 and pri<425). Compute main=40. Else if pri=689. Compute main=41. Else if pri=621 or pri=622. Compute main=42. Else if pri=601 or pri=602. Compute main=43. Else if pri=671 or pri=672. Compute main=44. Else if pri=661 or pri=662. Compute main=45. Else if pri=611 or pri=612 or (pri>630 and pri<636). Compute main=46. Else if pri>640 and pri<645. Compute main=48. Else if pri=651 or pri=652. Compute main=49. Else if pri=789. Compute main=50. Else if pri=709. Compute main=51. Else if pri=729. Compute main=52. Else if pri=739. Compute main=53. Else if pri=749. Compute main=54. Else if pri=719. Compute main=55. Else if pri=771. Compute main=56. Else if pri=769 or pri=772. Compute main=57. Else if (pri>800 and pri<809) or pri=815 or pri=816 or pri=823 or pri=825 or pri=826 or pri=888. Compute main=60. Else if pri=821. Compute main=62. Else if pri=824. Compute main=63. Else if pri=192 or pri=814 or pri=817 or pri=818. Compute main=64. Else if pri=259. Compute main=65. Else if (pri>810 and pri<814) or pri=822. Compute main=66. Else if pri=171 or pri=173. Compute main=67. Else if pri=172 or pri=844. Compute main=68. Else if pri=889. Compute main=70. Else if pri=984. Compute main=71. Else if pri=752. Compute main=72. Else if pri>870 and pri<875. Compute main=73. Else if pri>860 and pri<865. Compute main=74. Else if pri=851 or pri=852 or pri=831. Compute main=75. Else if (pri>840 and pri<844) or pri=835. Compute main=76. Else if pri>831 and pri<835. Compute main=77. Else if pri=981 or pri=982 or pri=983 or pri=989. Compute main=78. Else if pri=939. Compute main=81. Else if pri=941 or pri=942. Compute main=82. Else if pri=959. Compute main=83. Else if pri=929. Compute main=84. Else if pri=909. Compute main=85. Else if pri=919. Compute main=86. Else if pri=979. Compute main=87. Else if pri>960 and pri<964. Compute main=88. Else if pri=499. Compute main=91. Else if pri>96 and pri<100. Compute main=93. Else if pri=599. Compute main=94. Else if pri=399. Compute main=95. Else if pri=299. Compute main=96. Else if pri=698 or pri=699 or pri=498. Compute main=97. Else if pri=799 or pri=899 or pri=999. Compute main=98. Else if pri=0 or pri=481 or pri=579. Compute main=-8. end if. freq main. temp. select if main<15. cro pri by main. temp. select if main>14 and main<28. cro pri by main. temp. select if main>27 and main<42. cro pri by main. temp. select if main>41 and main<56. cro pri by main. temp. select if main>55 and main<70. cro pri by main. temp. select if main>69 and main<84. cro pri by main. temp. select if main>83. cro pri by main. Do if secact=482 or secact=483 or secact=489. Compute sec=1. Else if secact=459. Compute sec=3. Else if secact=469. Compute sec=5. Else if secact=409. Compute sec=6. Else if secact=411. Compute sec=7. Else if secact=69. Compute sec=8. Else if secact=439 or secact=449. Compute sec=9. Else if (secact=11 and (whr>1 or whr=-8)) or (secact=79 and (whr>1 or whr=-8)). Compute sec=10. Else if (secact=11 and whr=1) or (secact=79 and whr=1) or secact=12. Compute sec=11. Else if secact=59. Compute sec=12. Else if secact=89. Compute sec=13. Else if secact=78. Compute sec=14. Else if secact>21 and secact<25. Compute sec=15. Else if secact=509. Compute sec=16. Else if secact=549. Compute sec=17. Else if secact=519. Compute sec=18. Else if secact=569. Compute sec=19. Else if secact=109. Compute sec=20. Else if secact=119. Compute sec=21. Else if secact=129 or secact=139. Compute sec=22. Else if secact=149. Compute sec=23. Else if secact>160 and secact<165. Compute sec=24. Else if secact=191 or secact=193 or secact=197 or secact=389. Compute sec=25. Else if secact=301 or secact=302. Compute sec=26. Else if secact=311 or secact=312. Compute sec=27. Else if secact=329. Compute sec=28. Else if secact=339. Compute sec=29. Else if secact>350 and secact<355. Compute sec=30. Else if secact=341 or secact=342. Compute sec=31. Else if secact=379. Compute sec=32. Else if secact=209. Compute sec=33. Else if secact=218 or secact=219. Compute sec=34. Else if secact=269. Compute sec=35. Else if secact=249. Compute sec=36. Else if secact=221 or secact=222. Compute sec=37. Else if secact=239. Compute sec=38. Else if secact=278 or secact=279. Compute sec=39. Else if secact=412 or (secact>420 and secact<425). Compute sec=40. Else if secact=689. Compute sec=41. Else if secact=621 or secact=622. Compute sec=42. Else if secact=601 or secact=602. Compute sec=43. Else if secact=671 or secact=672. Compute sec=44. Else if secact=661 or secact=662. Compute sec=45. Else if secact=611 or secact=612 or (secact>630 and secact<636). Compute sec=46. Else if secact>640 and secact<645. Compute sec=48. Else if secact=651 or secact=652. Compute sec=49. Else if secact=789. Compute sec=50. Else if secact=709. Compute sec=51. Else if secact=729. Compute sec=52. Else if secact=739. Compute sec=53. Else if secact=749. Compute sec=54. Else if secact=719. Compute sec=55. Else if secact=771. Compute sec=56. Else if secact=769 or secact=772. Compute sec=57. Else if (secact>800 and secact<809) or secact=815 or secact=816 or secact=823 or secact=825 or secact=826 or secact=888. Compute sec=60. Else if secact=821. Compute sec=62. Else if secact=824. Compute sec=63. Else if secact=192 or secact=814 or secact=817 or secact=818. Compute sec=64. Else if secact=259. Compute sec=65. Else if (secact>810 and secact<814) or secact=822. Compute sec=66. Else if secact=171 or secact=173. Compute sec=67. Else if secact=172 or secact=844. Compute sec=68. Else if secact=889. Compute sec=70. Else if secact=984. Compute sec=71. Else if secact=752. Compute sec=72. Else if secact>870 and secact<875. Compute sec=73. Else if secact>860 and secact<865. Compute sec=74. Else if secact=851 or secact=852 or secact=831. Compute sec=75. Else if (secact>840 and secact<844) or secact=835. Compute sec=76. Else if secact>831 and secact<835. Compute sec=77. Else if secact=981 or secact=982 or secact=983 or secact=989. Compute sec=78. Else if secact=939. Compute sec=81. Else if secact=941 or secact=942. Compute sec=82. Else if secact=959. Compute sec=83. Else if secact=929. Compute sec=84. Else if secact=909. Compute sec=85. Else if secact=919. Compute sec=86. Else if secact=979. Compute sec=87. Else if secact>960 and secact<964. Compute sec=88. Else if secact=499. Compute sec=91. Else if secact>96 and secact<100. Compute sec=93. Else if secact=599. Compute sec=94. Else if secact=399. Compute sec=95. Else if secact=299. Compute sec=96. Else if secact=698 or secact=699 or secact=498. Compute sec=97. Else if secact=799 or secact=899 or secact=999. Compute sec=98. Else if secact=0 or secact=481 or secact=579 or secact=-8. Compute sec=0. end if. freq sec. temp. select if sec<15. cro secact by sec. temp. select if sec>14 and sec<28. cro secact by sec. temp. select if sec>27 and sec<42. cro secact by sec. temp. select if sec>41 and sec<56. cro secact by sec. temp. select if sec>55 and sec<70. cro secact by sec. temp. select if sec>69 and sec<84. cro secact by sec. temp. select if sec>83. cro secact by sec. *add imputation codes to activity variables. temp. select if main=-8. freq main. *if main activity is missing and * a) the location is travelling * b) the location is valid and not at home or * another home and the previous location is * valid, not travelling, and different from * the present location *the main activity is coded to impute travel * *if the main activity is valid and not travel and *the location is travelling or both the current and *previous locations are valid and the previous location *is not travelling and the current and previous location *differ, the secondary activity is coded as imputed *travel * *if the main activity is missing and the location is *at home or another home and the previous location is *travel, main activity is coded as unknown personal *or household care * *if the main activity is missing and the previous location *is travel and the present location is valid but not at *a home, the main activity is coded as imputed out of *home activity. temp. select if sec=90 or sec=0. freq sec. Do if hhid=lag(hhid) and wave=lag(wave). Do if main<0 and eloc=8. compute main=90. compute dqcheck1=1. Else if main<0 and ((eloc=1 or eloc=2) and lag(eloc)=8). compute main=2. compute dqcheck3=1. Else if main<0 and eloc>0 and lag(eloc)=8. compute main=58. Else if main<0 and ((eloc>0 and lag(eloc)>0) and eloc~=lag(eloc)). compute main=90. compute dqcheck1=1. Else if (main>0 and main<90 and sec=0) and (eloc=8 or (((eloc>0 and eloc<8) and (lag(eloc)>0 and lag(eloc)<8)) and eloc~=lag(eloc) and (lag(pri)<801 or lag(pri)>826))). compute sec=90. End if. End if. freq dqcheck1 dqcheck2 dqcheck3. temp. select if sec=90 or sec=0. freq sec. temp. select if main=-8 or main=2 or main=58 or main=90. freq main. *if main activity still missing and the location is *valid and not at home, code the main activity as *imputed activity away from home. If main<0 and eloc>2 main=58. temp. select if main=-8 or main=58. freq main. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr.sav' /BREAK=wave hhid /maxep = MAX(epnum). match files files=* table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr.sav' /by wave hhid. compute lastep=0. if maxep=epnum lastep=1. freq lastep. compute test=0. if lastep=1 and epnum>3 and main=-8 and lag(main)>0 test=1. temp. select if test=1. freq time eloc. compute test2=0. if test=1 and eloc=-8 test2=lag(eloc). freq test2. temp. select if test2>2. freq time. *if the missing time gap is the last episode of the diary, *the diary has at least 4 episodes, the activity before *the last time slot is not missing, and the location of *the last time slot is at home or someone else's home, *or the location of the last time slot is missing but the *location of the previous time slot is own home or *another home, the last time slot is recorded as imputed *sleep. For these cases where the last location is missing, *the last location is set to the previous location. If test=1 and test2<3 main=4. If test=1 and test2<3 and eloc=-8 eloc=lag(eloc). *if the time slot before the last time slot is travelling *to home and the last time slot and the last location are *missing, the last location is set to home and the last *activity to imputed unknown personal care. Do if wave=3 and hhid=1456. compute main=58. compute eloc=9. Else. If test=1 and test2=8 main=2. If test=1 and test2=8 and eloc=-8 eloc=1. End if. temp. select if main=-8 or main=2 or main=4. freq main. compute test=0. If maxep>3 and epnum=1 and main=-8 test=1. freq test. compute ep2=epnum-1. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr2.sav' /BREAK=wave hhid ep2 /nextact=MAX(main) /nextloc=MAX(eloc) /epnum=max(ep2). match files files=* table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr2.sav' /by wave hhid epnum. temp. select if test=1. freq time eloc nextloc nextact . temp. select if test=1. cro eloc by nextloc. *If the first time slot is missing and the diary has at *least 4 episodes and the next activity is an activity at *home, the first activity is set to imputed personal care. *For the case of missing, then travel then home, the first *activity is set to imputed time away from home. where the *first location also is missing, the location is amended *based on subsequent location. Do If test=1 and nextact=93. compute main=4. Else if test=1 and nextloc=8. compute main=58. Else if test=1 and eloc=1. compute main=2. Else if test=1 and eloc=-8. compute main=2. compute eloc=1. End if. temp. select if main=-8 or main=2 or main=4 or main=58. freq main. compute test=0. if hhid=lag(hhid) and wave=lag(wave) and main=-8 and lag(main)=3 and maxep>3 test=1. if epnum>0 b4eloc=lag(eloc). temp. select if test=1. freq eloc b4eloc nextact time. *all 27 cases where there are 4 or more activities *and a time gap follows sleep start at home or have missing *location, but the previous location is at home or at *another home. In these cases, missing location is recoded *to previous the location; main activity imputed as unknown *personal care. If test=1 and eloc=-8 eloc=b4eloc. If test=1 main=2. temp. select if main=-8 or main=2. freq main. compute test=0. if main=-8 and maxep>3 and (lag(main)=9 or lag(main)=20 or lag(main)=21) test=1. temp. select if test=1. freq time eloc. compute b4eloc=0. if test=1 and eloc=-8 b4eloc=lag(eloc). freq b4eloc. *where the time gap in a diary with four or more *activities follows eating a meal or food *preparation of setting table/putting away dishes *and the location is missing but the previous *location is at home or at another home, location *is set to the previous location. in these same *cases and cases where the stated location is home, *main is set to unknown imputed personal or *household care. If eloc=-8 and (b4eloc>0 and b4eloc<3) eloc=b4eloc. If test=1 and ((b4eloc>0 and b4eloc<3) or eloc=1) main=2. temp. select if main=-8 or main=2 or main=4. freq main. compute test=0. if main=-8 and maxep>3 and lag(pri)=99 test=1. freq test. compute b4eloc=0. if test=1 b4eloc=lag(eloc). temp. select if test=1. freq eloc nextloc b4eloc nextact. *cases where main is missing and the number of activities *is 4 or more and the previous activity is travel to or *from work, if the subsequent destination is home, main *is set to imputed personal or home care; if the subsequent *destination is work, main is set to imputed time away from *home. Do If test=1 and nextloc=1. compute main=2. compute dqcheck3=1. compute eloc=1. Else if test=1. compute main=58. End if. temp. select if main=-8 or main=2 or main=58. freq main. compute test=0. if wave=lag(wave) and hhid=lag(hhid) and main=-8 and maxep>3 and lastep=0 test=1. freq test. compute test2=0. If test=1 and eloc=1 test2=1. freq test2. temp. select if test2=1. freq time. If test2=1 and time<121 main=2. compute test2=0. If lag(eloc)=nextloc and test=1 and eloc=-8 test2=1. freq test2. Do if test2=1 and time<121. compute eloc=lag(eloc). Do if lag(eloc)=1. compute main=2. compute dqcheck3=1. Else if lag(eloc)>1. compute main=58. End if. End if. temp. select if main=-8 or main=2 or main=58. freq main. compute test2=0. If lag(eloc)=1 and nextloc=8 and test=1 and eloc=-8 test2=1. freq test2. If test2=1 and time<121 eloc=1. If test2=1 and time<121 main=2. temp. select if main=-8 or main=2 or main=58. freq main. compute test2=0. If (lag(eloc)>1 and lag(eloc)~=8) and nextloc=8 and test=1 and eloc=-8 test2=1. freq test2. If test2=1 and time<121 eloc=lag(eloc). If test2=1 and time<121 main=58. temp. select if main=-8 or main=2 or main=58. freq main. compute test2=0. If lag(eloc)=8 and (nextloc>1 and nextloc~=8) and test=1 and eloc=-8 test2=1. freq test2. If test2=1 and time<121 eloc=nextloc. If test2=1 and time<121 main=58. *If time is spent with other people and the main *activity is missing, the main activity is recoded *to imputed social time. If wellknw=1 and main=-8 main=71. temp. select if main=-8 or main=2 or main=71 or main=58. freq main. cro inout by eloc. *amend inout to reflect further corrections to eloc. If inout=-8 and eloc=8 inout=3. val lab mwage -9 not asked that wave -8 missing 0 no wage income last month. freq dqcheck1 dqcheck2 dqcheck3 eloc. *impute eating where no main activity eating but *main activity food preparation or setting table reported. compute eatdr=0. If main=8 or main=9 or main=56 or sec=8 or sec=9 or sec=20 or sec=21 or sec=56 eatdr=time. *check for missing eating time but recorded set table or food prep. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\eat.sav' /BREAK=wave pid /anyeat = SUM(eatdr). match files files=* table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\eat.sav' by wave pid. freq anyeat. temp. select if anyeat=0. freq maxep main. *some really low episode diaries with missing eating. Do if anyeat=0 and (main=20 or main=21) and sec=0 and maxep>9. compute sec=2. End if. freq sec. temp. select if eloc=-8. cro main by nextact. temp. select if eloc=-8. cro nextloc by b4eloc. do if eloc=-8 and pid=lag(pid) and wave=lag(wave). compute eloc=lag(eloc). end if. freq eloc. temp. select if main<0. freq eloc. *set missing main activity when travel recorded as imputed travel. Do if main<0 and eloc=8. compute main=90. compute dqcheck1=1. End if. freq main dqcheck1. temp. select if main<0. cro nextact by eloc. Do if main<0 and eloc=1 and nextact>89. compute main=2. compute dqcheck3=1. End if. freq main dqcheck3. freq main. temp. select if maxep>1 or (maxep=1 and main>-8). freq main. *1.5% of main activity episodes remain missing in this *file; nonetheless, a majority of the 1578 missing episodes *appear in cases where there is no diary; only 31 episodes *remain missing. Do if mtrav=-7 and (main>89 or sec>89). compute mtrav=5. End if. freq mtrav. sort cases by wave hhid pid. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.SAV' /KEEP survey wave hhid pid diaryday cday month year time clockst start end epnum main sec inout eloc mtrav alone infant child sppart clsfam hhadult animal shoprof cowork wellknw otherp unknwp mwage sex maxep v7972 v7973 v7976. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975mainmarker.SAV' /BREAK=survey wave hhid pid /dqcheck1=MAX(dqcheck1) /dqcheck2=MAX(dqcheck2) /dqcheck3=MAX(dqcheck3). Get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.SAV'. Compute t0pcare=0. Compute t1paidw=0. Compute t2ed=0. compute t3unpaid=0. compute t4acvol=0. compute t5outhm=0. compute t6exerc=0. compute t7inhm=0. compute t8media=0. compute t9trav=0. compute tmiss=0. vector tmain(98) tsc(98). compute outside=0. compute inveh=0. compute inside=0. compute locunk=0. compute athome=0. compute atwrksc=0. compute elsewhr=0. compute lunk=0. compute walone=0. compute wchild=0. compute wsppart=0. compute wclsfam=0. compute wother=0. compute withunk=-9. compute eatdr=0. compute sleep=0. compute perscare=0. compute mstrav=0. compute anycare=0. If main>-1 and main<10 t0pcare =time. If main>9 and main<16 t1paidw =time. If main>15 and main<20 t2ed =time. If main>19 and main<40 t3unpaid =time. If main>39 and main<50 t4acvol =time. If main>49 and main<60 t5outhm =time. If main>59 and main<70 t6exerc =time. If main>69 and main<80 t7inhm =time. If main>79 and main<90 t8media =time. If main>89 and main<100 t9trav =time. If main=-8 tmiss =time. If main=8 or main=9 or main=20 or main=21 or main=56 or sec=2 or sec=8 or sec=9 or sec=20 or sec=21 or sec=56 eatdr =time. If main=3 or main=4 or main=5 or main=13 or main=78 or sec=3 or sec=5 or sec=13 or sec=78 sleep =time. If main=1 or main=2 or main=6 or main=7 or sec=1 or sec=6 or sec=7 perscare =time. If (main>89 and main<99) or (main>58 and main<68) or (sec>89 and sec<99) or (sec>58 and sec<68) mstrav =time. If (main>32 and main<41) or main=68 or (sec>32 and sec<41) or sec=68 anycare=1. If inout=1 outside =time. if inout=2 inside =time. if inout=3 inveh =time. if inout=-8 locunk =time. if eloc=1 athome =time. if eloc=3 or eloc=4 atwrksc =time. if eloc=2 or eloc>4 elsewhr =time. If eloc=-8 lunk =time. If alone=1 walone =time. If child=1 wchild =time. If sppart=1 wsppart =time. If clsfam=1 wclsfam =time. If shoprof=1 or otherp=1 or (wellknw=1 and clsfam=0) wother =time. Do repeat a=tmain1 to tmain98 /b=tsc1 to tsc98 /i=1 to 98. compute a=0. compute b=0. If main=i a=time. If main=i and ((sec>32 and sec<40) or sec=96) b=time. End repeat. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema2.sav'. desc t0pcare t1paidw t2ed t3unpaid t4acvol t5outhm t6exerc t7inhm t8media t9trav tmiss eatdr sleep perscare mstrav outside inside inveh locunk athome atwrksc elsewhr lunk walone wchild wsppart wclsfam wother withunk. compute t1dig = SUM(t0pcare to tmiss). compute t2dig = SUM (tmain1 to tmain98). compute t2dig = t2dig + tmiss. execute. *set all variable codes which could not be constructed to -9 for *missing. recode tmain89 tsc89 tmain92 tsc92 (0=-9). execute. sort cases by survey wave hhid pid. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfsum.sav' /BREAK=survey wave hhid pid /diaryday = MAX(diaryday) /cday = MAX(cday) /month = MAX(month) /year = MAX(year) /tottime "total minutes recorded in diary" = SUM(time) /numep 'total original episodes recorded' = MAX(epnum) /t0pcare = SUM(t0pcare) /t1paid = SUM(t1paidw) /t2ed = SUM(t2ed) /t3unpaid = SUM(t3unpaid) /t4acvol = SUM(t4acvol) /t5outhm = SUM(t5outhm) /t6exerc = SUM(t6exerc) /t7inhm = SUM(t7inhm) /t8media = SUM(t8media) /t9trav = SUM(t9trav) /tmiss = SUM(tmiss) /tmain1 = SUM(tmain1) /tmain2 = SUM(tmain2) /tmain3 = SUM(tmain3) /tmain4 = SUM(tmain4) /tmain5 = SUM(tmain5) /tmain6 = SUM(tmain6) /tmain7 = SUM(tmain7) /tmain8 = SUM(tmain8) /tmain9 = SUM(tmain9) /tmain10 = SUM(tmain10) /tmain11 = SUM(tmain11) /tmain12 = SUM(tmain12) /tmain13 = SUM(tmain13) /tmain14 = SUM(tmain14) /tmain15 = SUM(tmain15) /tmain16 = SUM(tmain16) /tmain17 = SUM(tmain17) /tmain18 = SUM(tmain18) /tmain19 = SUM(tmain19) /tmain20 = SUM(tmain20) /tmain21 = SUM(tmain21) /tmain22 = SUM(tmain22) /tmain23 = SUM(tmain23) /tmain24 = SUM(tmain24) /tmain25 = SUM(tmain25) /tmain26 = SUM(tmain26) /tmain27 = SUM(tmain27) /tmain28 = SUM(tmain28) /tmain29 = SUM(tmain29) /tmain30 = SUM(tmain30) /tmain31 = SUM(tmain31) /tmain32 = SUM(tmain32) /tmain33 = SUM(tmain33) /tmain34 = SUM(tmain34) /tmain35 = SUM(tmain35) /tmain36 = SUM(tmain36) /tmain37 = SUM(tmain37) /tmain38 = SUM(tmain38) /tmain39 = SUM(tmain39) /tmain40 = SUM(tmain40) /tmain41 = SUM(tmain41) /tmain42 = SUM(tmain42) /tmain43 = SUM(tmain43) /tmain44 = SUM(tmain44) /tmain45 = SUM(tmain45) /tmain46 = SUM(tmain46) /tmain48 = SUM(tmain48) /tmain49 = SUM(tmain49) /tmain50 = SUM(tmain50) /tmain51 = SUM(tmain51) /tmain52 = SUM(tmain52) /tmain53 = SUM(tmain53) /tmain54 = SUM(tmain54) /tmain55 = SUM(tmain55) /tmain56 = SUM(tmain56) /tmain57 = SUM(tmain57) /tmain58 = SUM(tmain58) /tmain60 = SUM(tmain60) /tmain62 = SUM(tmain62) /tmain63 = SUM(tmain63) /tmain64 = SUM(tmain64) /tmain65 = SUM(tmain65) /tmain66 = SUM(tmain66) /tmain67 = SUM(tmain67) /tmain68 = SUM(tmain68) /tmain70 = SUM(tmain70) /tmain71 = SUM(tmain71) /tmain72 = SUM(tmain72) /tmain73 = SUM(tmain73) /tmain74 = SUM(tmain74) /tmain75 = SUM(tmain75) /tmain76 = SUM(tmain76) /tmain77 = SUM(tmain77) /tmain78 = SUM(tmain78) /tmain81 = SUM(tmain81) /tmain82 = SUM(tmain82) /tmain83 = SUM(tmain83) /tmain84 = SUM(tmain84) /tmain85 = SUM(tmain85) /tmain86 = SUM(tmain86) /tmain87 = SUM(tmain87) /tmain88 = SUM(tmain88) /tmain89 = MAX(tmain89) /tmain90 = SUM(tmain90) /tmain91 = SUM(tmain91) /tmain92 = MAX(tmain92) /tmain93 = SUM(tmain93) /tmain94 = SUM(tmain94) /tmain95 = SUM(tmain95) /tmain96 = SUM(tmain96) /tmain97 = SUM(tmain97) /tmain98 = SUM(tmain98) /tsc1 = SUM(tsc1) /tsc2 = SUM(tsc2) /tsc3 = SUM(tsc3) /tsc4 = SUM(tsc4) /tsc5 = SUM(tsc5) /tsc6 = SUM(tsc6) /tsc7 = SUM(tsc7) /tsc8 = SUM(tsc8) /tsc9 = SUM(tsc9) /tsc10= SUM(tsc10) /tsc11= SUM(tsc11) /tsc12= SUM(tsc12) /tsc13= SUM(tsc13) /tsc14= SUM(tsc14) /tsc15= SUM(tsc15) /tsc16= SUM(tsc16) /tsc17= SUM(tsc17) /tsc18= SUM(tsc18) /tsc19= SUM(tsc19) /tsc20= SUM(tsc20) /tsc21= SUM(tsc21) /tsc22= SUM(tsc22) /tsc23= SUM(tsc23) /tsc24= SUM(tsc24) /tsc25= SUM(tsc25) /tsc26= SUM(tsc26) /tsc27= SUM(tsc27) /tsc28= SUM(tsc28) /tsc29= SUM(tsc29) /tsc30= SUM(tsc30) /tsc31= SUM(tsc31) /tsc32= SUM(tsc32) /tsc33= SUM(tsc33) /tsc34= SUM(tsc34) /tsc35= SUM(tsc35) /tsc36= SUM(tsc36) /tsc37= SUM(tsc37) /tsc38= SUM(tsc38) /tsc39= SUM(tsc39) /tsc40= SUM(tsc40) /tsc41= SUM(tsc41) /tsc42= SUM(tsc42) /tsc43= SUM(tsc43) /tsc44= SUM(tsc44) /tsc45= SUM(tsc45) /tsc46= SUM(tsc46) /tsc48= SUM(tsc48) /tsc49= SUM(tsc49) /tsc50= SUM(tsc50) /tsc51= SUM(tsc51) /tsc52= SUM(tsc52) /tsc53= SUM(tsc53) /tsc54= SUM(tsc54) /tsc55= SUM(tsc55) /tsc56= SUM(tsc56) /tsc57= SUM(tsc57) /tsc58= SUM(tsc58) /tsc60= SUM(tsc60) /tsc62= SUM(tsc62) /tsc63= SUM(tsc63) /tsc64= SUM(tsc64) /tsc65= SUM(tsc65) /tsc66= SUM(tsc66) /tsc67= SUM(tsc67) /tsc68= SUM(tsc68) /tsc70= SUM(tsc70) /tsc71= SUM(tsc71) /tsc72= SUM(tsc72) /tsc73= SUM(tsc73) /tsc74= SUM(tsc74) /tsc75= SUM(tsc75) /tsc76= SUM(tsc76) /tsc77= SUM(tsc77) /tsc78= SUM(tsc78) /tsc81= SUM(tsc81) /tsc82= SUM(tsc82) /tsc83= SUM(tsc83) /tsc84= SUM(tsc84) /tsc85= SUM(tsc85) /tsc86= SUM(tsc86) /tsc87= SUM(tsc87) /tsc88= SUM(tsc88) /tsc89= MAX(tsc89) /tsc90= SUM(tsc90) /tsc91= SUM(tsc91) /tsc92= MAX(tsc92) /tsc93= SUM(tsc93) /tsc94= SUM(tsc94) /tsc95= SUM(tsc95) /tsc96= SUM(tsc96) /tsc97= SUM(tsc97) /tsc98= SUM(tsc98) /outside = SUM(outside) /inside = SUM(inside) /inveh = SUM(inveh) /locunk = SUM(locunk) /athome = SUM(athome) /atwrksc = SUM(atwrksc) /elsewhr = SUM(elsewhr) /lunk = SUM(lunk) /walone = SUM(walone) /wchild = SUM(wchild) /wsppart = SUM(wsppart) /wclsfam = SUM(wclsfam) /wother = SUM(wother) /withunk = MAX(withunk) /eatdr = SUM(eatdr) /sleep = SUM(sleep) /perscare = SUM(perscare) /mstrav = SUM(mstrav) /mwage = MAX (mwage) /t1dig = SUM(t1dig) /t2dig = SUM(t2dig) /anycare=MAX(anycare) /v7972 = MAX(v7972) /v7973 = MAX(v7973) /v7976 = MAX(v7976). *pull out basic demographic variables against which to calculate weights. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\Harmonised files\Questionnaire\USA75_76quest.sav'. freq empstat. If empstat=-8 and fulltime=1 empstat=1. freq empstat. If empstat=-8 and noemploy=1 empstat=3. freq empstat. sort cases by wave hhid. SAVE OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\basicdem.sav' /keep wave hhid sex age empstat. Get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfsum.sav'. *check that variables sum to 1440 in aggregated file. freq t1dig t2dig tottime. *this reveals 6 further problem cases, wave 2 hhid 2407; wave 3 *hhid 702; wave 3 hhid 2249; wave 3 hhid 2774; wave 3 hhid 2801; *wave 4 hhid 2848. *select if t1dig~=1440. *execute. *these cases now addressed earlier in the file. compute muchmiss=0. If tmiss>90 muchmiss=1. var lab muchmiss missing more than 90 minutes. val lab muchmiss 0 no more than 90 minutes missing 1 more than 90 minutes missing. freq muchmiss. compute lowep=0. If numep<7 lowep=1. var lab lowep "<7 episodes". cro lowep by numep. freq lowep. compute misbasic=0. If mstrav=0 misbasic=misbasic+1. If eatdr=0 misbasic=misbasic+1. If sleep=0 misbasic=misbasic+1. If perscare=0 misbasic=misbasic+1. var lab misbasic number basic activites not recorded. freq misbasic. cro misbasic by anycare. temp. select if anycare=1 and misbasic>1. freq numep. *some missing 2 basic activities but performed care, *but 1 of these 51 has 4 episodes. compute caremflg=0. if anycare=1 and misbasic>1 and numep>6 caremflg=1. cro caremflg by anycare by misbasic. temp. select if misbasic=2. freq numep athome. *determine additional cases where we will not drop cases if *they miss two basic activities only. compute keep=0. if misbasic=2 and numep>14 keep=1. if misbasic=2 and athome>999 and numep>11 keep=1. freq keep. cro keep by caremflg. cro caremflg by misbasic by keep. compute lowqual=0. If muchmiss=1 or lowep=1 or (misbasic>1 and caremflg=0 and keep=0) lowqual=1. freq lowqual. compute baddem=0. compute owghtflg = 3. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema2.sav'. cro lowqual by muchmiss lowep misbasic. cro lowqual by misbasic by caremflg. sort cases by wave hhid. match files files=* files='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\basicdem.sav' by wave hhid. freq sex age diaryday. recode sex age empstat (sysmis=-8). if sex=-8 or age=-8 or diaryday=-8 baddem=1. compute baddem2=0. if sex=-8 or age=-8 or empstat=-8 or diaryday=-8 baddem2=1. var lab baddem2 "age, sex or empstat missing (0 weighed)". val lab baddem2 0 no 1 yes. temp. select if numep>1 or (numep=1 and tmiss=0). cro baddem baddem2 by lowqual. compute drop=0. if numep=1 and tmiss=1440 drop=1. freq drop. vector particp(4) goodr(4) goodd(4) goodba(4) goodbb(4). Loop i=1 to 4. compute particp(i)=-1. compute goodr(i)=-1. compute goodd(i)=-1. compute goodba(i)=-1. compute goodbb(i)=-1. If wave=i and numep=1 and tmiss=1440 particp(i)=0. If wave=i and lowqual=1 or baddem=1 goodr(i)=0. If wave=i and lowqual=1 goodd(i)=0. if wave=i and baddem=1 goodba(i)=0. if wave=i and baddem2=1 goodbb(i)=0. If wave=i and numep>1 or (numep=1 and tmiss<1440) particp(i)=1. If wave=i and lowqual=0 and baddem=0 goodr(i)=1. If wave=i and lowqual=0 goodd(i)=1. if wave=i and baddem=0 goodba(i)=1. if wave=i and baddem2=0 goodbb(i)=1. End loop. var lab particp1 participated wave 1. var lab particp2 participated wave 2. var lab particp3 participated wave 3. var lab particp4 participated wave 4. var lab goodr1 good diary & dem wave 1. var lab goodr2 good diary & dem wave 2. var lab goodr3 good diary & dem wave 3. var lab goodr4 good diary & dem wave 4. var lab goodd1 good diary wave 1. var lab goodd2 good diary wave 2. var lab goodd3 good diary wave 3. var lab goodd4 good diary wave 4. var lab goodba1 good age & sex wave 1. var lab goodba2 good age & sex wave 2. var lab goodba3 good age & sex wave 3. var lab goodba4 good age & sex wave 4. var lab goodbb1 good empstat, age & sex wave 1. var lab goodbb2 good empstat, age & sex wave 2. var lab goodbb3 good empstat, age & sex wave 3. var lab goodbb4 good empstat, age & sex wave 4. val lab particp1 to goodbb4 0 no 1 yes. execute. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\agmain.sav' /BREAK=survey hhid pid /sex = MAX(sex) /age = MAX(age) /particp1 = MAX(particp1) /particp2 = MAX(particp2) /particp3 = MAX(particp3) /particp4 = MAX(particp4) /goodr1 = MAX(goodr1) /goodr2 = MAX(goodr2) /goodr3 = MAX(goodr3) /goodr4 = MAX(goodr4) /goodd1 = MAX(goodd1) /goodd2 = MAX(goodd2) /goodd3 = MAX(goodd3) /goodd4 = MAX(goodd4) /goodba1 = MAX(goodba1) /goodba2 = MAX(goodba2) /goodba3 = MAX(goodba3) /goodba4 = MAX(goodba4) /goodbb1 = MAX(goodbb1) /goodbb2 = MAX(goodbb2) /goodbb3 = MAX(goodbb3) /goodbb4 = MAX(goodbb4) /v7972 =MAX(v7972) /v7973 = MAX(v7973) /v7976 = MAX(v7976). select if drop=0. freq muchmiss lowep lowqual. cro misbasic by lowqual. cro baddem by lowqual. sort cases by survey wave hhid pid. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\addwght75main.sav' /keep wave hhid pid diaryday year tottime numep t0pcare t1paid t2ed t3unpaid t4acvol t5outhm t6exerc t7inhm t8media t9trav tmiss lowqual baddem caremflg sex age empstat v7972 v7973 v7976. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfsum.sav' /drop eatdr sleep perscare mstrav muchmiss lowep misbasic t1dig t2dig empstat baddem2 particp1 particp2 particp3 particp4 goodr1 goodr2 goodr3 goodr4 goodd1 goodd2 goodd3 goodd4 goodba1 goodba2 goodba3 goodba4 goodbb1 goodbb2 goodbb3 goodbb4 i anycare v7972 v7973 v7976. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.sav'. *save a file to allow the match of spouse present information *to the spouse diaries. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\sppresag.sav' /BREAK=wave hhid /mainmax =max(epnum) /epsppr=sum(sppart). select if sppart=1. compute spstart=0. compute spend=0. Do if $casenum=1 or hhid~=lag(hhid). compute spstart=start. compute spend=end. Else if hhid=lag(hhid) and epnum>lag(epnum)+1. compute spstart=start. compute spend=end. Else if hhid=lag(hhid) and epnum=lag(epnum)+1. compute spstart=lag(spstart). compute spend=end. End if. execute. sort cases by wave(a) hhid(a) spend(d). compute epcut=0. if $casenum=1 or hhid~=lag(hhid) epcut=1. if hhid=lag(hhid) and spstart~=lag(spstart) epcut=1. execute. select if epcut=1. execute. *determine the maximum number of with spouse episodes. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr.sav' /BREAK=wave hhid /maxspep =sum(epcut). match files files=* table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr.sav' /BY wave hhid. freq maxspep. sort cases by wave hhid spstart. if hhid=lag(hhid) epcut=lag(epcut)+epcut. execute. vector wspstr(10) wspend(10). Loop i=1 to 10. compute wspstr(i)=-1. compute wspend(i)=-1. If epcut=i wspstr(i)= spstart. if epcut=i wspend(i)= spend. end loop. execute. AGGREGATE /outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\spousepresent.sav' /break wave hhid /wspstr1 = MAX(wspstr1) /wspstr2 = MAX(wspstr2) /wspstr3 = MAX(wspstr3) /wspstr4 = MAX(wspstr4) /wspstr5 = MAX(wspstr5) /wspstr6 = MAX(wspstr6) /wspstr7 = MAX(wspstr7) /wspstr8 = MAX(wspstr8) /wspstr9 = MAX(wspstr9) /wspstr10 = MAX(wspstr10) /wspend1 = MAX(wspend1) /wspend2 = MAX(wspend2) /wspend3 = MAX(wspend3) /wspend4 = MAX(wspend4) /wspend5 = MAX(wspend5) /wspend6 = MAX(wspend6) /wspend7 = MAX(wspend7) /wspend8 = MAX(wspend8) /wspend9 = MAX(wspend9) /wspend10 = MAX(wspend10). **************************************************************** *At this point, need to run the spouse files to the same point,* *then run convertUSA75TUV-part 3, then return to this point. * *START HERE * ****************************************************************. Get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfsum.sav'. sort cases by wave hhid pid. match files files=* /in=base file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\popwghts.sav' /in=wt /by wave hhid pid. execute. cro base by wt. *select if drop=0. rename variables (origmo=origwght). weight by origwght. freq diaryday. weight by mainwt. freq diaryday. weight off. desc origwght mainwt minfwt. sort cases by agesexgp diaryday. aggregate outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\group.sav' /break=agesexgp /grouptot=sum(mainwt) /groupto1=sum(minfwt). aggregate outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\day.sav' /break= agesexgp diaryday /daytot=sum(mainwt) /daytot1=sum(minfwt) /dayn=nu. execute. match files file=* /table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\group.sav' /by agesexgp. execute. match files file=* /table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\day.sav' /by agesexgp diaryday. execute. compute exptot=(grouptot/7). compute exptot1=(groupto1/7). compute infltwt=0. compute recwght=0. Do if mainwt>0. compute recwght=(exptot/daytot)/(dayn/daytot). compute infltwt=(exptot1/daytot1)/(dayn/daytot1). End if. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema2.sav'. desc recwght infltwt. if agesexgp=1 recwght=recwght* (331/325). if agesexgp=2 recwght=recwght* (491/489). if agesexgp=3 recwght=recwght* (380/367). if agesexgp=4 recwght=recwght* (258/255). if agesexgp=5 recwght=recwght* (292/280). if agesexgp=6 recwght=recwght* (383/373). if agesexgp=11 recwght=recwght*(350/348). if agesexgp=12 recwght=recwght*(518/514). if agesexgp=13 recwght=recwght*(359/354). if agesexgp=14 recwght=recwght*(399/397). if agesexgp=15 recwght=recwght*(371/362). if agesexgp=16 recwght=recwght*(453/444). compute recwght=recwght*(4584/4585). if agesexgp=1 infltwt=infltwt* (3345347/3348709). if agesexgp=2 infltwt=infltwt* (4966285/5029897). if agesexgp=3 infltwt=infltwt* (3845645/3779893). if agesexgp=4 infltwt=infltwt* (2613745/2626459). if agesexgp=5 infltwt=infltwt* (2954837/2879215). if agesexgp=6 infltwt=infltwt* (3877629/3836246). if agesexgp=11 infltwt=infltwt*(3540233/3580394). if agesexgp=12 infltwt=infltwt*(5233514/5286691). if agesexgp=13 infltwt=infltwt*(3637718/3641817). if agesexgp=14 infltwt=infltwt*(4034864/4084825). if agesexgp=15 infltwt=infltwt*(3758375/3727173). if agesexgp=16 infltwt=infltwt*(4584887/4571761). compute infltwt=infltwt*(46393080/45623757). weight by recwght. fre diaryday agesexgp. cro agesexgp by diaryday /cell=row. weight by infltwt. fre diaryday agesexgp. cro agesexgp by diaryday /cell=row. weight off. desc recwght infltwt. compute xtimewt=recwght. **************************** * Weighted* *men 18 thru 24 7.2% 331* *men 25 thru 34 10.7% 491* *men 35 thru 44 8.3% 380* *men 45 thru 54 5.6% 258* *men 55 thru 64 6.4% 292* *men 65+ 8.4% 383* *women 18 thru 24 7.6% 350* *women 25 thru 34 11.3% 518* *women 35 thru 44 7.8% 359* *women 45 thru 54 8.7% 399* *women 55 thru 64 8.1% 371* *women 65+ 9.9% 453* *Total 4584* ****************************. sort cases by survey wave hhid pid. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfsum.sav' /keep survey wave hhid pid diaryday cday month year mwage tottime numep t0pcare t1paid t2ed t3unpaid t4acvol t5outhm t6exerc t7inhm t8media t9trav tmiss tmain1 tmain2 tmain3 tmain4 tmain5 tmain6 tmain7 tmain8 tmain9 tmain10 tmain11 tmain12 tmain13 tmain14 tmain15 tmain16 tmain17 tmain18 tmain19 tmain20 tmain21 tmain22 tmain23 tmain24 tmain25 tmain26 tmain27 tmain28 tmain29 tmain30 tmain31 tmain32 tmain33 tmain34 tmain35 tmain36 tmain37 tmain38 tmain39 tmain40 tmain41 tmain42 tmain43 tmain44 tmain45 tmain46 tmain48 tmain49 tmain50 tmain51 tmain52 tmain53 tmain54 tmain55 tmain56 tmain57 tmain58 tmain60 tmain62 tmain63 tmain64 tmain65 tmain66 tmain67 tmain68 tmain70 tmain71 tmain72 tmain73 tmain74 tmain75 tmain76 tmain77 tmain78 tmain81 tmain82 tmain83 tmain84 tmain85 tmain86 tmain87 tmain88 tmain89 tmain90 tmain91 tmain92 tmain93 tmain94 tmain95 tmain96 tmain97 tmain98 tsc1 tsc2 tsc3 tsc4 tsc5 tsc6 tsc7 tsc8 tsc9 tsc10 tsc11 tsc12 tsc13 tsc14 tsc15 tsc16 tsc17 tsc18 tsc19 tsc20 tsc21 tsc22 tsc23 tsc24 tsc25 tsc26 tsc27 tsc28 tsc29 tsc30 tsc31 tsc32 tsc33 tsc34 tsc35 tsc36 tsc37 tsc38 tsc39 tsc40 tsc41 tsc42 tsc43 tsc44 tsc45 tsc46 tsc48 tsc49 tsc50 tsc51 tsc52 tsc53 tsc54 tsc55 tsc56 tsc57 tsc58 tsc60 tsc62 tsc63 tsc64 tsc65 tsc66 tsc67 tsc68 tsc70 tsc71 tsc72 tsc73 tsc74 tsc75 tsc76 tsc77 tsc78 tsc81 tsc82 tsc83 tsc84 tsc85 tsc86 tsc87 tsc88 tsc89 tsc90 tsc91 tsc92 tsc93 tsc94 tsc95 tsc96 tsc97 tsc98 outside inside inveh locunk athome atwrksc elsewhr lunk walone wchild wsppart wclsfam wother withunk lowqual baddem caremflg origwght owghtflg xtimewt infltwt recwght. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\addmainqual.sav' /keep survey wave hhid pid lowqual baddem caremflg origwght owghtflg xtimewt infltwt recwght. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.sav'. match files files=* table='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\addmainqual.sav' /by wave hhid. apply dictionary from 'C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\History of harmonisation - Diary\schema\schema1.sav'. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.sav' /drop maxep sex mwage v7972 v7973 v7976. *check prevalence of secondary activities. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.sav'. compute anysec=0. compute sectime=0. compute secep=0. compute seccc=0. compute seccctm=0. compute secccep=0. Do If sec>0. compute anysec=1. compute sectime= time. compute secep=1. End if. Do If (sec>32 and sec<40) or sec=96 or sec=99. compute seccc=1. compute seccctm= time. compute secccep=1. End if. freq anysec secep seccc secccep. desc sectime seccctm. AGGREGATE /OUTFILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr.sav' /BREAK=wave hhid /anysec 'any secondary activity' = MAX(anysec) /seccc 'any secondary childcare' = MAX(seccc) /sectime 'secodary activity time' = SUM(sectime) /seccctm 'secodary childcare time' = SUM(seccctm) /secccep '# of secondary childcare episodes' = SUM(secccep) /secep '# of secondary activity episodes' = SUM(secep) /epnum 'number of episodes' = MAX(epnum) /lowqual = MAX(lowqual) /baddem = MAX(baddem). Get FILE='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\aggr.sav'. compute propsec= secep/epnum*100. compute pcc= secccep/epnum*100. select if lowqual=0 and baddem=0. freq anysec seccc. desc sectime seccctm propsec pcc. temp. select if seccc=1. desc seccctm pcc. *final checks and adjustments. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfep.sav'. *correct one diary with problems in end time that produce 1440 minutes but the *wrong distribution of time in two activities. do if wave=2 and hhid=910 and pid=910 and epnum=5. compute end=660. Else if wave=2 and hhid=910 and pid=910 and epnum=21. compute end=1380. Else if wave=2 and hhid=910 and pid=910 and epnum=22. compute start=1380. compute end=1440. end if. recode recwght (sysmis=-5). execute. temp. select if recwght=-5. freq start end time clockst cday month. *these cases are only non-diaries. select if recwght>-5. desc survey wave hhid pid diaryday cday month year time clockst start end epnum main sec inout eloc mtrav alone infant child sppart clsfam hhadult animal shoprof cowork wellknw otherp unknwp lowqual baddem origwght xtimewt infltwt recwght. recode lowqual baddem caremflg (sysmis=0). freq survey wave diaryday cday month year epnum main sec inout eloc mtrav alone infant child sppart clsfam hhadult animal shoprof cowork wellknw otherp unknwp lowqual baddem caremflg. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\Harmonised files\Diary\diary1975-76\USA1975hfep.sav'. get file='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\1975\USA1975hfsum.sav'. desc survey wave hhid pid diaryday cday month year tottime numep t0pcare t1paid t2ed t3unpaid t4acvol t5outhm t6exerc t7inhm t8media t9trav tmiss tmain1 to tmain50. desc tmain50 to tsc57. desc tsc58 to tsc98 outside inveh inside locunk athome atwrksc elsewhr lunk walone wchild wsppart wclsfam wother withunk lowqual baddem mwage origwght xtimewt infltwt recwght. freq survey wave diaryday cday month year tottime numep lowqual baddem caremflg. save outfile='C:\Users\Kimberly Fisher\Documents\Kimberly\time\ATUS\AHTUS final files\Harmonised files\Diary\diary1975-76\USA1975hfsum.sav'. freq lowqual baddem. temp. select if recwght=0. cro lowqual by baddem. temp. select if recwght~=0. freq diaryday. weight by recwght. freq diaryday. weight off.