I was trying to fit a curve to the number of people who identify as liberal by age. I got some puzzling results which suggested to me that I don't really understand how local polynomial fitting works. Why, I am wondering, is lowess producing a local fit of zero for every age?> liberal.bin[1] 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 [57] 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 [113] 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 [169] 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 1 1 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 [225] 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 [281] 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 1 0 1 0 1 1 0 0 0 0 1 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 [337] 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 1 [393] 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 [449] 0 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0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1457] 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0> > age[1] 62 62 27 61 44 53 50 71 57 43 66 60 45 71 52 61 32 62 51 50 48 35 73 63 48 38 25 28 66 81 45 50 52 23 55 62 72 [38] 64 63 56 52 69 62 41 40 51 28 58 44 48 53 32 28 48 29 58 31 40 57 65 23 75 39 57 30 66 66 52 52 65 52 44 50 36 [75] 25 55 36 49 51 23 80 51 60 42 45 38 46 50 63 64 68 25 33 37 60 46 82 26 55 55 46 24 59 23 33 60 79 48 60 68 40 [112] 45 55 61 57 29 75 30 71 51 46 52 38 33 65 68 63 43 64 58 38 71 73 62 43 83 21 66 60 46 60 59 61 52 50 48 42 64 [149] 50 24 23 60 61 52 59 24 22 70 63 65 74 50 80 54 55 47 75 67 41 46 57 63 50 62 31 58 75 21 28 69 67 62 47 56 38 [186] 79 69 52 54 32 70 58 50 35 39 34 59 43 54 54 57 28 43 47 56 48 51 57 72 34 57 51 46 50 48 40 59 66 29 50 33 45 [223] 65 57 65 69 45 46 65 76 74 54 61 43 43 38 36 58 68 54 65 42 53 72 45 39 61 40 44 79 79 50 27 63 50 70 34 32 27 [260] 49 72 50 53 47 49 44 41 24 22 41 25 27 64 70 49 50 22 35 26 62 45 19 31 61 62 39 80 44 42 41 66 59 67 41 64 47 [297] 75 24 37 33 46 47 36 53 59 36 26 24 37 69 49 44 73 53 50 79 19 42 54 46 31 55 45 53 56 67 50 47 43 77 32 60 28 [334] 59 71 48 50 39 31 31 32 59 60 51 62 39 38 31 28 58 20 70 57 60 55 25 38 31 61 71 33 57 60 68 64 20 46 38 68 56 [371] 23 49 54 56 22 38 31 46 46 28 40 33 43 63 49 30 36 60 50 61 64 31 30 34 26 25 66 55 57 56 31 28 65 31 72 32 44 [408] 58 50 49 56 38 50 65 57 72 40 64 74 73 36 60 67 78 67 66 38 28 79 55 56 65 69 34 51 31 61 69 19 38 72 32 55 56 [445] 51 25 27 45 48 60 41 27 45 47 62 23 68 57 23 47 59 50 36 43 59 81 27 40 50 76 45 26 46 53 40 23 75 51 30 42 48 [482] 47 60 61 73 55 61 22 53 71 32 51 47 64 73 49 46 48 26 46 35 77 51 58 33 54 41 38 64 42 45 55 47 63 53 57 69 58 [519] 49 28 49 56 52 44 29 61 55 57 61 32 23 42 53 63 42 55 24 55 36 45 27 26 48 36 32 54 27 24 32 26 27 79 23 56 29 [556] 24 30 34 69 43 42 42 65 58 38 23 53 29 57 31 45 27 26 61 44 46 36 31 63 57 47 51 50 50 46 26 62 62 45 44 36 57 [593] 56 25 56 66 37 52 51 36 51 62 66 71 68 47 40 58 52 51 45 64 52 21 53 58 41 33 53 38 47 41 66 28 66 53 59 41 61 [630] 59 56 22 30 50 56 29 58 60 28 61 58 48 55 47 55 55 37 25 50 29 30 52 61 41 29 41 38 32 53 35 45 56 61 73 48 28 [667] 57 63 53 36 20 73 67 56 52 60 36 59 44 43 60 39 32 60 65 24 58 51 22 51 46 45 63 59 72 42 34 22 40 64 28 63 43 [704] 77 69 33 70 63 57 60 74 26 60 25 53 36 70 45 54 54 25 75 51 46 42 48 41 57 40 59 34 74 76 49 86 69 37 71 38 47 [741] 50 53 32 46 30 26 28 63 63 29 44 60 57 55 43 39 47 74 70 60 69 34 70 37 63 53 62 49 67 56 46 71 46 57 60 37 58 [778] 76 40 54 43 53 28 27 64 54 72 54 55 61 24 50 24 62 57 73 53 49 30 60 51 37 38 30 46 47 24 27 44 58 46 49 41 63 [815] 40 47 45 38 40 42 68 24 45 50 39 45 37 37 65 22 38 83 43 55 64 40 45 59 51 54 32 44 62 48 50 52 57 50 40 62 51 [852] 50 26 40 61 70 51 59 42 53 35 66 56 52 34 63 30 33 46 67 48 41 61 48 57 61 22 60 43 51 67 45 40 69 70 40 49 64 [889] 59 86 52 42 48 47 39 65 51 48 65 38 57 38 50 67 22 65 69 61 32 28 49 59 63 51 59 57 50 66 62 69 79 58 37 55 36 [926] 57 48 71 45 51 53 33 42 47 48 30 35 27 61 24 63 56 53 50 35 51 57 66 55 57 74 33 28 63 69 33 66 43 55 52 54 28 [963] 30 33 27 54 46 32 46 50 21 52 32 26 44 39 57 28 56 31 47 59 26 47 52 50 41 28 33 47 42 41 51 21 69 33 28 57 41 [1000] 26 29 33 26 27 64 60 60 47 44 45 45 41 41 40 41 32 25 52 51 22 45 34 59 30 51 54 69 44 56 49 60 50 63 55 35 55 [1037] 58 36 62 29 51 56 65 43 51 69 54 57 67 42 54 53 56 69 51 43 62 65 44 37 61 33 60 37 78 46 59 57 46 35 59 59 28 [1074] 63 43 61 50 48 47 64 47 38 58 62 85 49 64 42 51 49 28 53 30 50 54 66 47 77 23 63 53 61 74 65 64 60 65 62 69 60 [1111] 37 25 28 55 55 72 48 40 68 48 57 77 59 65 54 28 70 46 40 60 49 50 73 65 74 52 70 43 72 52 44 22 51 35 50 51 32 [1148] 56 22 32 40 54 53 49 62 47 50 68 40 40 58 30 56 19 30 73 48 49 50 32 49 75 46 43 47 29 46 42 44 30 50 76 49 70 [1185] 47 44 58 49 54 43 30 52 45 47 55 57 53 45 59 27 47 66 27 58 40 47 60 54 58 38 44 34 60 77 64 45 53 41 29 65 45 [1222] 69 49 50 49 49 57 49 48 39 36 50 57 36 56 26 32 67 63 53 74 49 43 57 55 48 53 60 48 46 35 38 53 28 64 59 41 46 [1259] 42 37 43 50 43 45 24 23 65 27 46 54 54 27 54 33 42 50 61 49 52 67 41 24 45 44 49 61 27 48 54 34 51 42 69 58 23 [1296] 38 37 49 57 62 48 64 60 49 51 33 59 58 57 62 24 48 57 41 49 40 34 52 56 47 55 34 59 61 52 48 51 51 65 41 38 53 [1333] 47 53 58 56 47 31 40 63 48 59 55 69 37 31 49 63 44 54 64 46 59 33 57 42 42 62 39 54 38 56 51 58 63 60 55 43 45 [1370] 65 39 51 53 36 67 62 47 42 38 56 36 53 64 60 75 69 48 53 51 50 39 52 60 46 61 43 55 62 74 56 32 65 60 37 43 64 [1407] 57 45 38 51 62 52 60 48 52 62 55 75 33 38 44 56 54 49 46 26 84 64 22 55 68 31 43 48 79 69 59 44 67 58 58 71 61 [1444] 53 69 60 70 31 29 18 67 43 69 61 57 50 58 50 66 69 53 68 45 78 63 66 52 59 43 70 57 63 52 49 71 67 59 78 45 62 [1481] 63 60 67 38 55 56 39 26 47 52 65 68 55 37 60 58 67 35 62 74> > mean(liberal.bin[age==26])[1] 0.4> mean(liberal.bin[age==21])[1] 0.6> mean(liberal.bin[age==22])[1] 0.4> mean(liberal.bin[age==23])[1] 0.6667> mean(liberal.bin[age==24])[1] 0.4444> mean(liberal.bin[age==25])[1] 0.3846> mean(liberal.bin[age==26])[1] 0.4> lowess(age, liberal.bin)$x [1] 18 19 19 19 19 20 20 20 21 21 21 21 21 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 23 23 23 23 23 23 23 23 23 [38] 23 23 23 23 23 23 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 25 25 25 25 25 25 25 25 25 25 25 25 25 [75] 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 [112] 27 27 27 27 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 29 29 29 29 29 [149] 29 29 29 29 29 29 29 29 29 29 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 31 31 31 31 [186] 31 31 31 31 31 31 31 31 31 31 31 31 31 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 [223] 32 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 34 34 34 34 34 34 34 34 34 34 34 34 34 [260] 34 34 35 35 35 35 35 35 35 35 35 35 35 35 35 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 [297] 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 [334] 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 40 40 40 40 40 [371] 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 41 41 41 41 41 41 41 41 41 41 41 41 41 [408] 41 41 41 41 41 41 41 41 41 41 41 41 41 41 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 [445] 42 42 42 42 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 [482] 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 45 45 45 45 45 45 45 45 45 45 [519] 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 46 46 46 46 46 46 46 [556] 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 47 47 47 47 47 47 [593] 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 48 48 48 [630] 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 49 49 [667] 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 [704] 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 [741] 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 [778] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 52 52 52 52 52 52 52 52 52 52 52 [815] 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 53 53 53 53 53 53 53 53 53 53 53 53 53 [852] 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 54 54 54 54 54 54 54 54 54 [889] 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 55 55 55 55 55 55 55 55 55 55 55 55 55 [926] 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 56 56 56 56 56 56 56 56 56 56 56 [963] 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 57 57 57 57 57 57 57 57 57 57 57 57 57 [1000] 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 58 58 [1037] 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 59 59 59 59 59 59 [1074] 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 60 60 60 60 60 60 60 [1111] 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [1148] 60 60 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 [1185] 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 63 63 63 [1222] 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 64 64 64 64 64 64 64 [1259] 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 [1296] 65 65 65 65 65 65 65 65 65 65 65 65 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 67 67 67 67 [1333] 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 68 68 68 68 68 68 68 68 68 68 68 68 68 68 69 69 69 69 69 69 69 [1370] 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 [1407] 70 71 71 71 71 71 71 71 71 71 71 71 71 71 72 72 72 72 72 72 72 72 72 72 72 73 73 73 73 73 73 73 73 73 73 73 74 [1444] 74 74 74 74 74 74 74 74 74 74 74 75 75 75 75 75 75 75 75 75 75 76 76 76 76 76 77 77 77 77 77 77 78 78 78 78 79 [1481] 79 79 79 79 79 79 79 79 80 80 80 81 81 82 83 83 84 85 86 86 $y [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [57] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [113] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [169] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [225] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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0 0 0 0 [1233] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1289] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1345] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1401] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1457] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [[alternative HTML version deleted]]
I am trying to fit a curve to the number of people who identify as liberal by age. I got some puzzling results which suggested to me that I don't really understand how local polynomial fitting works. Why, I am wondering, is lowess producing a local fit of zero for every age?> liberal[1] 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 1 [40] 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 [79] 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 [118] 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 [157] 0 0 0 0 0 1 0 1 1 0 0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 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 1 0 1 1 0 0 0 0 1 1 [1171] 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 [1210] 1 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 [1249] 0 1 0 0 0 1 0 0 1 1 0 0 1 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 [1288] 0 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 [1327] 1 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 [1366] 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 [1405] 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 [1444] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 [1483] 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0> age[1] 62 62 27 61 44 53 50 71 57 43 66 60 45 71 52 61 32 62 51 50 48 35 73 63 48 38 [27] 25 28 66 81 45 50 52 23 55 62 72 64 63 56 52 69 62 41 40 51 28 58 44 48 53 32 [53] 28 48 29 58 31 40 57 65 23 75 39 57 30 66 66 52 52 65 52 44 50 36 25 55 36 49 [79] 51 23 80 51 60 42 45 38 46 50 63 64 68 25 33 37 60 46 82 26 55 55 46 24 59 23 [105] 33 60 79 48 60 68 40 45 55 61 57 29 75 30 71 51 46 52 38 33 65 68 63 43 64 58 [131] 38 71 73 62 43 83 21 66 60 46 60 59 61 52 50 48 42 64 50 24 23 60 61 52 59 24 [157] 22 70 63 65 74 50 80 54 55 47 75 67 41 46 57 63 50 62 31 58 75 21 28 69 67 62 [183] 47 56 38 79 69 52 54 32 70 58 50 35 39 34 59 43 54 54 57 28 43 47 56 48 51 57 [209] 72 34 57 51 46 50 48 40 59 66 29 50 33 45 65 57 65 69 45 46 65 76 74 54 61 43 [235] 43 38 36 58 68 54 65 42 53 72 45 39 61 40 44 79 79 50 27 63 50 70 34 32 27 49 [261] 72 50 53 47 49 44 41 24 22 41 25 27 64 70 49 50 22 35 26 62 45 19 31 61 62 39 [287] 80 44 42 41 66 59 67 41 64 47 75 24 37 33 46 47 36 53 59 36 26 24 37 69 49 44 [313] 73 53 50 79 19 42 54 46 31 55 45 53 56 67 50 47 43 77 32 60 28 59 71 48 50 39 [339] 31 31 32 59 60 51 62 39 38 31 28 58 20 70 57 60 55 25 38 31 61 71 33 57 60 68 [365] 64 20 46 38 68 56 23 49 54 56 22 38 31 46 46 28 40 33 43 63 49 30 36 60 50 61 [391] 64 31 30 34 26 25 66 55 57 56 31 28 65 31 72 32 44 58 50 49 56 38 50 65 57 72 [417] 40 64 74 73 36 60 67 78 67 66 38 28 79 55 56 65 69 34 51 31 61 69 19 38 72 32 [443] 55 56 51 25 27 45 48 60 41 27 45 47 62 23 68 57 23 47 59 50 36 43 59 81 27 40 [469] 50 76 45 26 46 53 40 23 75 51 30 42 48 47 60 61 73 55 61 22 53 71 32 51 47 64 [495] 73 49 46 48 26 46 35 77 51 58 33 54 41 38 64 42 45 55 47 63 53 57 69 58 49 28 [521] 49 56 52 44 29 61 55 57 61 32 23 42 53 63 42 55 24 55 36 45 27 26 48 36 32 54 [547] 27 24 32 26 27 79 23 56 29 24 30 34 69 43 42 42 65 58 38 23 53 29 57 31 45 27 [573] 26 61 44 46 36 31 63 57 47 51 50 50 46 26 62 62 45 44 36 57 56 25 56 66 37 52 [599] 51 36 51 62 66 71 68 47 40 58 52 51 45 64 52 21 53 58 41 33 53 38 47 41 66 28 [625] 66 53 59 41 61 59 56 22 30 50 56 29 58 60 28 61 58 48 55 47 55 55 37 25 50 29 [651] 30 52 61 41 29 41 38 32 53 35 45 56 61 73 48 28 57 63 53 36 20 73 67 56 52 60 [677] 36 59 44 43 60 39 32 60 65 24 58 51 22 51 46 45 63 59 72 42 34 22 40 64 28 63 [703] 43 77 69 33 70 63 57 60 74 26 60 25 53 36 70 45 54 54 25 75 51 46 42 48 41 57 [729] 40 59 34 74 76 49 86 69 37 71 38 47 50 53 32 46 30 26 28 63 63 29 44 60 57 55 [755] 43 39 47 74 70 60 69 34 70 37 63 53 62 49 67 56 46 71 46 57 60 37 58 76 40 54 [781] 43 53 28 27 64 54 72 54 55 61 24 50 24 62 57 73 53 49 30 60 51 37 38 30 46 47 [807] 24 27 44 58 46 49 41 63 40 47 45 38 40 42 68 24 45 50 39 45 37 37 65 22 38 83 [833] 43 55 64 40 45 59 51 54 32 44 62 48 50 52 57 50 40 62 51 50 26 40 61 70 51 59 [859] 42 53 35 66 56 52 34 63 30 33 46 67 48 41 61 48 57 61 22 60 43 51 67 45 40 69 [885] 70 40 49 64 59 86 52 42 48 47 39 65 51 48 65 38 57 38 50 67 22 65 69 61 32 28 [911] 49 59 63 51 59 57 50 66 62 69 79 58 37 55 36 57 48 71 45 51 53 33 42 47 48 30 [937] 35 27 61 24 63 56 53 50 35 51 57 66 55 57 74 33 28 63 69 33 66 43 55 52 54 28 [963] 30 33 27 54 46 32 46 50 21 52 32 26 44 39 57 28 56 31 47 59 26 47 52 50 41 28 [989] 33 47 42 41 51 21 69 33 28 57 41 26 29 33 26 27 64 60 60 47 44 45 45 41 41 40 [1015] 41 32 25 52 51 22 45 34 59 30 51 54 69 44 56 49 60 50 63 55 35 55 58 36 62 29 [1041] 51 56 65 43 51 69 54 57 67 42 54 53 56 69 51 43 62 65 44 37 61 33 60 37 78 46 [1067] 59 57 46 35 59 59 28 63 43 61 50 48 47 64 47 38 58 62 85 49 64 42 51 49 28 53 [1093] 30 50 54 66 47 77 23 63 53 61 74 65 64 60 65 62 69 60 37 25 28 55 55 72 48 40 [1119] 68 48 57 77 59 65 54 28 70 46 40 60 49 50 73 65 74 52 70 43 72 52 44 22 51 35 [1145] 50 51 32 56 22 32 40 54 53 49 62 47 50 68 40 40 58 30 56 19 30 73 48 49 50 32 [1171] 49 75 46 43 47 29 46 42 44 30 50 76 49 70 47 44 58 49 54 43 30 52 45 47 55 57 [1197] 53 45 59 27 47 66 27 58 40 47 60 54 58 38 44 34 60 77 64 45 53 41 29 65 45 69 [1223] 49 50 49 49 57 49 48 39 36 50 57 36 56 26 32 67 63 53 74 49 43 57 55 48 53 60 [1249] 48 46 35 38 53 28 64 59 41 46 42 37 43 50 43 45 24 23 65 27 46 54 54 27 54 33 [1275] 42 50 61 49 52 67 41 24 45 44 49 61 27 48 54 34 51 42 69 58 23 38 37 49 57 62 [1301] 48 64 60 49 51 33 59 58 57 62 24 48 57 41 49 40 34 52 56 47 55 34 59 61 52 48 [1327] 51 51 65 41 38 53 47 53 58 56 47 31 40 63 48 59 55 69 37 31 49 63 44 54 64 46 [1353] 59 33 57 42 42 62 39 54 38 56 51 58 63 60 55 43 45 65 39 51 53 36 67 62 47 42 [1379] 38 56 36 53 64 60 75 69 48 53 51 50 39 52 60 46 61 43 55 62 74 56 32 65 60 37 [1405] 43 64 57 45 38 51 62 52 60 48 52 62 55 75 33 38 44 56 54 49 46 26 84 64 22 55 [1431] 68 31 43 48 79 69 59 44 67 58 58 71 61 53 69 60 70 31 29 18 67 43 69 61 57 50 [1457] 58 50 66 69 53 68 45 78 63 66 52 59 43 70 57 63 52 49 71 67 59 78 45 62 63 60 [1483] 67 38 55 56 39 26 47 52 65 68 55 37 60 58 67 35 62 74> mean(liberal[age==25])[1] 0.3846> mean(liberal[age==26])[1] 0.4> mean(liberal[age==27])[1] 0.2857> mean(liberal[age==28])[1] 0.5357> lowess(age, liberal)$x [1] 18 19 19 19 19 20 20 20 21 21 21 21 21 22 22 22 22 22 22 22 22 22 22 22 22 22 [27] 22 22 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 24 24 24 24 24 24 24 24 24 [53] 24 24 24 24 24 24 24 24 24 25 25 25 25 25 25 25 25 25 25 25 25 25 26 26 26 26 [79] 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 27 27 27 27 27 27 27 27 27 27 [105] 27 27 27 27 27 27 27 27 27 27 27 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 [131] 28 28 28 28 28 28 28 28 28 28 28 28 28 29 29 29 29 29 29 29 29 29 29 29 29 29 [157] 29 29 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 31 31 [183] 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 32 32 32 32 32 32 32 32 32 32 [209] 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 33 33 33 33 33 33 33 33 33 33 33 [235] 33 33 33 33 33 33 33 33 33 33 33 33 34 34 34 34 34 34 34 34 34 34 34 34 34 34 [261] 34 35 35 35 35 35 35 35 35 35 35 35 35 35 36 36 36 36 36 36 36 36 36 36 36 36 [287] 36 36 36 36 36 36 36 36 36 36 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 [313] 37 37 37 37 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 [339] 38 38 38 38 38 38 38 38 38 38 38 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 [365] 39 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 [391] 40 40 40 40 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 [417] 41 41 41 41 41 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 [443] 42 42 42 42 42 42 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 [469] 43 43 43 43 43 43 43 43 43 43 43 43 43 44 44 44 44 44 44 44 44 44 44 44 44 44 [495] 44 44 44 44 44 44 44 44 44 44 44 44 44 44 45 45 45 45 45 45 45 45 45 45 45 45 [521] 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 [547] 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 [573] 46 46 46 46 46 46 46 46 46 46 46 46 46 46 47 47 47 47 47 47 47 47 47 47 47 47 [599] 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 [625] 47 47 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 [651] 48 48 48 48 48 48 48 48 48 48 48 48 48 48 49 49 49 49 49 49 49 49 49 49 49 49 [677] 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 [703] 49 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 [729] 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 [755] 50 50 50 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 [781] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 52 52 52 [807] 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 [833] 52 52 52 52 52 52 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 [859] 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 54 54 54 54 54 [885] 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 [911] 54 54 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 [937] 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 56 56 56 56 56 56 56 56 56 56 56 [963] 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 57 57 [989] 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 [1015] 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 58 58 58 58 58 58 [1041] 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 [1067] 58 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 [1093] 59 59 59 59 59 59 59 59 59 59 59 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [1119] 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [1145] 60 60 60 60 60 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 [1171] 61 61 61 61 61 61 61 61 61 61 61 61 61 61 62 62 62 62 62 62 62 62 62 62 62 62 [1197] 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 63 63 63 63 [1223] 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 [1249] 63 63 63 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 [1275] 64 64 64 64 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 [1301] 65 65 65 65 65 65 65 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 [1327] 66 66 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 68 68 68 68 [1353] 68 68 68 68 68 68 68 68 68 68 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 [1379] 69 69 69 69 69 69 69 69 69 69 69 69 69 70 70 70 70 70 70 70 70 70 70 70 70 70 [1405] 70 70 70 71 71 71 71 71 71 71 71 71 71 71 71 71 72 72 72 72 72 72 72 72 72 72 [1431] 72 73 73 73 73 73 73 73 73 73 73 73 74 74 74 74 74 74 74 74 74 74 74 74 75 75 [1457] 75 75 75 75 75 75 75 75 76 76 76 76 76 77 77 77 77 77 77 78 78 78 78 79 79 79 [1483] 79 79 79 79 79 79 80 80 80 81 81 82 83 83 84 85 86 86 $y [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [40] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [79] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [118] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [157] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [196] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [235] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [274] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [313] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [352] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [391] 0 0 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 0 [1366] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1405] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1444] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [1483] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [[alternative HTML version deleted]]
Resolved. It works if I set iter=0. On Thu, Aug 6, 2009 at 9:03 PM, Donald Braman <dbraman@law.gwu.edu> wrote:> I was trying to fit a curve to the number of people who identify as liberal > by age. I got some puzzling results which suggested to me that I don't > really understand how local polynomial fitting works. Why, I am wondering, > is lowess producing a local fit of zero for every age? > > liberal.bin > [1] 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 > 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 > [57] 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 > 1 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 > [113] 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 > 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 > [169] 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 > 1 0 1 1 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 > [225] 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 > 0 0 0 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 0 0 1 0 0 0 0 0 > [1233] 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 0 1 1 1 0 1 0 > 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 > [1289] 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 > 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 > [1345] 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 > 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [1401] 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 > 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [1457] 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 > 0 0 0 0 0 0 0 0 1 0 > > > > age > [1] 62 62 27 61 44 53 50 71 57 43 66 60 45 71 52 61 32 62 51 50 48 35 73 > 63 48 38 25 28 66 81 45 50 52 23 55 62 72 > [38] 64 63 56 52 69 62 41 40 51 28 58 44 48 53 32 28 48 29 58 31 40 57 65 > 23 75 39 57 30 66 66 52 52 65 52 44 50 36 > [75] 25 55 36 49 51 23 80 51 60 42 45 38 46 50 63 64 68 25 33 37 60 46 82 > 26 55 55 46 24 59 23 33 60 79 48 60 68 40 > [112] 45 55 61 57 29 75 30 71 51 46 52 38 33 65 68 63 43 64 58 38 71 73 62 > 43 83 21 66 60 46 60 59 61 52 50 48 42 64 > [149] 50 24 23 60 61 52 59 24 22 70 63 65 74 50 80 54 55 47 75 67 41 46 57 > 63 50 62 31 58 75 21 28 69 67 62 47 56 38 > [186] 79 69 52 54 32 70 58 50 35 39 34 59 43 54 54 57 28 43 47 56 48 51 57 > 72 34 57 51 46 50 48 40 59 66 29 50 33 45 > [223] 65 57 65 69 45 46 65 76 74 54 61 43 43 38 36 58 68 54 65 42 53 72 45 > 39 61 40 44 79 79 50 27 63 50 70 34 32 27 > [260] 49 72 50 53 47 49 44 41 24 22 41 25 27 64 70 49 50 22 35 26 62 45 19 > 31 61 62 39 80 44 42 41 66 59 67 41 64 47 > [297] 75 24 37 33 46 47 36 53 59 36 26 24 37 69 49 44 73 53 50 79 19 42 54 > 46 31 55 45 53 56 67 50 47 43 77 32 60 28 > [334] 59 71 48 50 39 31 31 32 59 60 51 62 39 38 31 28 58 20 70 57 60 55 25 > 38 31 61 71 33 57 60 68 64 20 46 38 68 56 > [371] 23 49 54 56 22 38 31 46 46 28 40 33 43 63 49 30 36 60 50 61 64 31 30 > 34 26 25 66 55 57 56 31 28 65 31 72 32 44 > [408] 58 50 49 56 38 50 65 57 72 40 64 74 73 36 60 67 78 67 66 38 28 79 55 > 56 65 69 34 51 31 61 69 19 38 72 32 55 56 > [445] 51 25 27 45 48 60 41 27 45 47 62 23 68 57 23 47 59 50 36 43 59 81 27 > 40 50 76 45 26 46 53 40 23 75 51 30 42 48 > [482] 47 60 61 73 55 61 22 53 71 32 51 47 64 73 49 46 48 26 46 35 77 51 58 > 33 54 41 38 64 42 45 55 47 63 53 57 69 58 > [519] 49 28 49 56 52 44 29 61 55 57 61 32 23 42 53 63 42 55 24 55 36 45 27 > 26 48 36 32 54 27 24 32 26 27 79 23 56 29 > [556] 24 30 34 69 43 42 42 65 58 38 23 53 29 57 31 45 27 26 61 44 46 36 31 > 63 57 47 51 50 50 46 26 62 62 45 44 36 57 > [593] 56 25 56 66 37 52 51 36 51 62 66 71 68 47 40 58 52 51 45 64 52 21 53 > 58 41 33 53 38 47 41 66 28 66 53 59 41 61 > [630] 59 56 22 30 50 56 29 58 60 28 61 58 48 55 47 55 55 37 25 50 29 30 52 > 61 41 29 41 38 32 53 35 45 56 61 73 48 28 > [667] 57 63 53 36 20 73 67 56 52 60 36 59 44 43 60 39 32 60 65 24 58 51 22 > 51 46 45 63 59 72 42 34 22 40 64 28 63 43 > [704] 77 69 33 70 63 57 60 74 26 60 25 53 36 70 45 54 54 25 75 51 46 42 48 > 41 57 40 59 34 74 76 49 86 69 37 71 38 47 > [741] 50 53 32 46 30 26 28 63 63 29 44 60 57 55 43 39 47 74 70 60 69 34 70 > 37 63 53 62 49 67 56 46 71 46 57 60 37 58 > [778] 76 40 54 43 53 28 27 64 54 72 54 55 61 24 50 24 62 57 73 53 49 30 60 > 51 37 38 30 46 47 24 27 44 58 46 49 41 63 > [815] 40 47 45 38 40 42 68 24 45 50 39 45 37 37 65 22 38 83 43 55 64 40 45 > 59 51 54 32 44 62 48 50 52 57 50 40 62 51 > [852] 50 26 40 61 70 51 59 42 53 35 66 56 52 34 63 30 33 46 67 48 41 61 48 > 57 61 22 60 43 51 67 45 40 69 70 40 49 64 > [889] 59 86 52 42 48 47 39 65 51 48 65 38 57 38 50 67 22 65 69 61 32 28 49 > 59 63 51 59 57 50 66 62 69 79 58 37 55 36 > [926] 57 48 71 45 51 53 33 42 47 48 30 35 27 61 24 63 56 53 50 35 51 57 66 > 55 57 74 33 28 63 69 33 66 43 55 52 54 28 > [963] 30 33 27 54 46 32 46 50 21 52 32 26 44 39 57 28 56 31 47 59 26 47 52 > 50 41 28 33 47 42 41 51 21 69 33 28 57 41 > [1000] 26 29 33 26 27 64 60 60 47 44 45 45 41 41 40 41 32 25 52 51 22 45 34 > 59 30 51 54 69 44 56 49 60 50 63 55 35 55 > [1037] 58 36 62 29 51 56 65 43 51 69 54 57 67 42 54 53 56 69 51 43 62 65 44 > 37 61 33 60 37 78 46 59 57 46 35 59 59 28 > [1074] 63 43 61 50 48 47 64 47 38 58 62 85 49 64 42 51 49 28 53 30 50 54 66 > 47 77 23 63 53 61 74 65 64 60 65 62 69 60 > [1111] 37 25 28 55 55 72 48 40 68 48 57 77 59 65 54 28 70 46 40 60 49 50 73 > 65 74 52 70 43 72 52 44 22 51 35 50 51 32 > [1148] 56 22 32 40 54 53 49 62 47 50 68 40 40 58 30 56 19 30 73 48 49 50 32 > 49 75 46 43 47 29 46 42 44 30 50 76 49 70 > [1185] 47 44 58 49 54 43 30 52 45 47 55 57 53 45 59 27 47 66 27 58 40 47 60 > 54 58 38 44 34 60 77 64 45 53 41 29 65 45 > [1222] 69 49 50 49 49 57 49 48 39 36 50 57 36 56 26 32 67 63 53 74 49 43 57 > 55 48 53 60 48 46 35 38 53 28 64 59 41 46 > [1259] 42 37 43 50 43 45 24 23 65 27 46 54 54 27 54 33 42 50 61 49 52 67 41 > 24 45 44 49 61 27 48 54 34 51 42 69 58 23 > [1296] 38 37 49 57 62 48 64 60 49 51 33 59 58 57 62 24 48 57 41 49 40 34 52 > 56 47 55 34 59 61 52 48 51 51 65 41 38 53 > [1333] 47 53 58 56 47 31 40 63 48 59 55 69 37 31 49 63 44 54 64 46 59 33 57 > 42 42 62 39 54 38 56 51 58 63 60 55 43 45 > [1370] 65 39 51 53 36 67 62 47 42 38 56 36 53 64 60 75 69 48 53 51 50 39 52 > 60 46 61 43 55 62 74 56 32 65 60 37 43 64 > [1407] 57 45 38 51 62 52 60 48 52 62 55 75 33 38 44 56 54 49 46 26 84 64 22 > 55 68 31 43 48 79 69 59 44 67 58 58 71 61 > [1444] 53 69 60 70 31 29 18 67 43 69 61 57 50 58 50 66 69 53 68 45 78 63 66 > 52 59 43 70 57 63 52 49 71 67 59 78 45 62 > [1481] 63 60 67 38 55 56 39 26 47 52 65 68 55 37 60 58 67 35 62 74 > > > > mean(liberal.bin[age==26]) > [1] 0.4 > > mean(liberal.bin[age==21]) > [1] 0.6 > > mean(liberal.bin[age==22]) > [1] 0.4 > > mean(liberal.bin[age==23]) > [1] 0.6667 > > mean(liberal.bin[age==24]) > [1] 0.4444 > > mean(liberal.bin[age==25]) > [1] 0.3846 > > mean(liberal.bin[age==26]) > [1] 0.4 > > lowess(age, liberal.bin) > $x > [1] 18 19 19 19 19 20 20 20 21 21 21 21 21 22 22 22 22 22 22 22 22 22 22 > 22 22 22 22 22 23 23 23 23 23 23 23 23 23 > [38] 23 23 23 23 23 23 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 > 24 25 25 25 25 25 25 25 25 25 25 25 25 25 > [75] 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 27 27 27 > 27 27 27 27 27 27 27 27 27 27 27 27 27 27 > [112] 27 27 27 27 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 > 28 28 28 28 28 28 28 28 28 29 29 29 29 29 > [149] 29 29 29 29 29 29 29 29 29 29 30 30 30 30 30 30 30 30 30 30 30 30 30 > 30 30 30 30 30 30 30 31 31 31 31 31 31 31 > [186] 31 31 31 31 31 31 31 31 31 31 31 31 31 32 32 32 32 32 32 32 32 32 32 > 32 32 32 32 32 32 32 32 32 32 32 32 32 32 > [223] 32 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 > 33 34 34 34 34 34 34 34 34 34 34 34 34 34 > [260] 34 34 35 35 35 35 35 35 35 35 35 35 35 35 35 36 36 36 36 36 36 36 36 > 36 36 36 36 36 36 36 36 36 36 36 36 36 36 > [297] 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 38 38 38 > 38 38 38 38 38 38 38 38 38 38 38 38 38 38 > [334] 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 39 39 39 39 39 39 39 > 39 39 39 39 39 39 39 39 39 40 40 40 40 40 > [371] 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 > 40 41 41 41 41 41 41 41 41 41 41 41 41 41 > [408] 41 41 41 41 41 41 41 41 41 41 41 41 41 41 42 42 42 42 42 42 42 42 42 > 42 42 42 42 42 42 42 42 42 42 42 42 42 42 > [445] 42 42 42 42 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 > 43 43 43 43 43 43 43 43 43 43 43 43 43 43 > [482] 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 > 44 44 44 44 45 45 45 45 45 45 45 45 45 45 > [519] 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 > 45 45 45 45 45 45 46 46 46 46 46 46 46 46 > [556] 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 > 46 46 46 46 46 46 46 46 47 47 47 47 47 47 > [593] 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 > 47 47 47 47 47 47 47 47 47 47 47 48 48 48 > [630] 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 > 48 48 48 48 48 48 48 48 48 48 48 48 49 49 > [667] 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 > 49 49 49 49 49 49 49 49 49 49 49 49 49 49 > [704] 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 > 50 50 50 50 50 50 50 50 50 50 50 50 50 50 > [741] 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 51 51 51 51 51 51 > 51 51 51 51 51 51 51 51 51 51 51 51 51 51 > [778] 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 > 51 51 51 52 52 52 52 52 52 52 52 52 52 52 > [815] 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 > 52 53 53 53 53 53 53 53 53 53 53 53 53 53 > [852] 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 > 53 53 53 53 53 54 54 54 54 54 54 54 54 54 > [889] 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 > 54 55 55 55 55 55 55 55 55 55 55 55 55 55 > [926] 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 > 55 55 55 56 56 56 56 56 56 56 56 56 56 56 > [963] 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 56 > 56 57 57 57 57 57 57 57 57 57 57 57 57 57 > [1000] 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 57 > 57 57 57 57 57 57 57 57 57 57 57 57 58 58 > [1037] 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 > 58 58 58 58 58 58 58 58 59 59 59 59 59 59 > [1074] 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 > 59 59 59 59 59 59 59 60 60 60 60 60 60 60 > [1111] 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 60 > 60 60 60 60 60 60 60 60 60 60 60 60 60 60 > [1148] 60 60 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 > 61 61 61 61 61 61 61 61 61 61 61 61 61 61 > [1185] 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 > 62 62 62 62 62 62 62 62 62 62 62 63 63 63 > [1222] 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 63 > 63 63 63 63 63 63 63 64 64 64 64 64 64 64 > [1259] 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 65 65 65 > 65 65 65 65 65 65 65 65 65 65 65 65 65 65 > [1296] 65 65 65 65 65 65 65 65 65 65 65 65 66 66 66 66 66 66 66 66 66 66 66 > 66 66 66 66 66 66 66 66 66 66 67 67 67 67 > [1333] 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 68 68 68 68 68 68 68 > 68 68 68 68 68 68 68 69 69 69 69 69 69 69 > [1370] 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 70 > 70 70 70 70 70 70 70 70 70 70 70 70 70 70 > [1407] 70 71 71 71 71 71 71 71 71 71 71 71 71 71 72 72 72 72 72 72 72 72 72 > 72 72 73 73 73 73 73 73 73 73 73 73 73 74 > [1444] 74 74 74 74 74 74 74 74 74 74 74 75 75 75 75 75 75 75 75 75 75 76 76 > 76 76 76 77 77 77 77 77 77 78 78 78 78 79 > [1481] 79 79 79 79 79 79 79 79 80 80 80 81 81 82 83 83 84 85 86 86 > > $y > [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [57] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [113] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [169] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [225] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [281] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > [337] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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