American-Institutes-for-Research / WeMix

WeMix public repository
GNU General Public License v2.0
10 stars 2 forks source link

R crashes when using family = binomial(link="logit") #3

Closed BernhardClemm closed 2 years ago

BernhardClemm commented 2 years ago

For a reproducible example, use these data:

dt <- structure(list(person_id = c(183L, 183L, 183L, 25L, 25L, 25L, 
167L, 167L, 167L, 115L, 115L, 115L, 163L, 163L, 163L, 174L, 174L, 
174L, 100L, 100L, 100L, 139L, 139L, 139L, 36L, 36L, 36L, 130L, 
130L, 130L, 149L, 149L, 149L, 133L, 133L, 133L, 77L, 77L, 77L, 
120L, 120L, 120L, 57L, 57L, 57L, 60L, 60L, 60L, 132L, 132L, 132L, 
99L, 99L, 99L, 71L, 71L, 71L, 158L, 158L, 158L, 118L, 118L, 118L, 
96L, 96L, 96L, 119L, 119L, 119L, 123L, 123L, 123L, 74L, 74L, 
74L, 157L, 157L, 157L, 2L, 2L, 2L, 27L, 27L, 27L, 51L, 51L, 51L, 
114L, 114L, 114L, 50L, 50L, 50L, 155L, 155L, 155L, 190L, 190L, 
190L, 95L, 95L, 95L, 194L, 194L, 194L, 142L, 142L, 142L, 172L, 
172L, 172L, 125L, 125L, 125L, 101L, 101L, 101L, 170L, 170L, 170L, 
168L, 168L, 168L, 160L, 160L, 160L, 134L, 134L, 134L, 152L, 152L, 
152L, 197L, 197L, 197L, 59L, 59L, 59L, 110L, 110L, 110L, 193L, 
193L, 193L, 91L, 91L, 91L, 113L, 113L, 113L, 92L, 92L, 92L, 47L, 
47L, 47L, 94L, 94L, 94L, 15L, 15L, 15L, 11L, 11L, 11L, 42L, 42L, 
42L, 195L, 195L, 195L, 39L, 39L, 39L, 40L, 40L, 40L, 191L, 191L, 
191L, 166L, 166L, 166L, 84L, 84L, 84L, 43L, 43L, 43L, 107L, 107L, 
107L, 169L, 169L, 169L, 181L, 181L, 181L, 73L, 73L, 73L, 122L, 
122L, 122L, 61L, 61L, 61L, 21L, 21L, 21L, 146L, 146L, 146L, 162L, 
162L, 162L, 16L, 16L, 16L, 150L, 150L, 150L, 188L, 188L, 188L, 
5L, 5L, 5L, 153L, 153L, 153L, 66L, 66L, 66L, 80L, 80L, 80L, 111L, 
111L, 111L, 196L, 196L, 196L, 70L, 70L, 70L, 178L, 178L, 178L, 
141L, 141L, 141L, 145L, 145L, 145L, 46L, 46L, 46L, 55L, 55L, 
55L, 13L, 13L, 13L, 72L, 72L, 72L, 79L, 79L, 79L, 67L, 67L, 67L, 
85L, 85L, 85L, 34L, 34L, 34L, 14L, 14L, 14L, 28L, 28L, 28L, 75L, 
75L, 75L, 147L, 147L, 147L, 58L, 58L, 58L, 177L, 177L, 177L, 
22L, 22L, 22L, 64L, 64L, 64L, 35L, 35L, 35L, 19L, 19L, 19L, 108L, 
108L, 108L, 187L, 187L, 187L, 103L, 103L, 103L, 62L, 62L, 62L, 
129L, 129L, 129L, 41L, 41L, 41L, 159L, 159L, 159L, 24L, 24L, 
24L, 87L, 87L, 87L, 53L, 53L, 53L, 63L, 63L, 63L, 83L, 83L, 83L, 
68L, 68L, 68L, 38L, 38L, 38L, 82L, 82L, 82L, 30L, 30L, 30L, 56L, 
56L, 56L, 171L, 171L, 171L, 151L, 151L, 151L, 12L, 12L, 12L, 
136L, 136L, 136L, 143L, 143L, 143L, 89L, 89L, 89L, 154L, 154L, 
154L, 26L, 26L, 26L, 117L, 117L, 117L, 173L, 173L, 173L, 86L, 
86L, 86L, 45L, 45L, 45L, 33L, 33L, 33L, 10L, 10L, 10L, 104L, 
104L, 104L, 112L, 112L, 112L, 102L, 102L, 102L, 49L, 49L, 49L, 
185L, 185L, 185L, 116L, 116L, 116L, 98L, 98L, 98L, 65L, 65L, 
65L, 186L, 186L, 186L, 90L, 90L, 90L, 23L, 23L, 23L, 52L, 52L, 
52L, 138L, 138L, 138L, 175L, 175L, 175L, 3L, 3L, 3L, 164L, 164L, 
164L, 121L, 121L, 121L, 105L, 105L, 105L, 81L, 81L, 81L, 37L, 
37L, 37L, 31L, 31L, 31L, 97L, 97L, 97L, 144L, 144L, 144L, 109L, 
109L, 109L, 179L, 179L, 179L, 32L, 32L, 32L, 29L, 29L, 29L, 17L, 
17L, 17L, 198L, 198L, 198L, 131L, 131L, 131L, 184L, 184L, 184L, 
8L, 8L, 8L, 176L, 176L, 176L, 156L, 156L, 156L, 199L, 199L, 199L, 
140L, 140L, 140L, 106L, 106L, 106L, 69L, 69L, 69L, 18L, 18L, 
18L, 4L, 4L, 4L), participation_bin = c(0L, 1L, 0L, 0L, 0L, 0L, 
0L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 1L, 
0L, 1L, 1L, 0L, 0L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 1L, 1L, 0L, 
0L, 1L, 1L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 
1L, 1L, 0L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 1L, 
0L, 0L, 0L, 0L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 0L, 0L, 0L, 
0L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 
0L, 0L, 0L, 0L, 1L, 0L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 
0L, 0L, 0L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 0L, 
0L, 0L, 0L, 0L, 1L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 1L, 0L, 0L, 1L, 
0L, 1L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 0L, 
0L, 1L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 
0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 0L, 0L, 0L, 1L, 1L, 
1L, 0L, 1L, 0L, 1L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 0L, 1L, 1L, 
1L, 1L, 0L, 0L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 0L, 1L, 
1L, 0L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 0L, 
0L, 1L, 0L, 0L, 1L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 
1L, 0L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 
1L, 1L, 1L, 1L, 0L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 1L, 0L, 0L, 0L, 
1L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 1L, 
0L, 0L, 0L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 0L, 0L, 
0L, 1L, 0L, 1L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 
0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 
1L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 
0L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 
1L, 0L, 1L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 
1L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 1L, 
0L, 1L, 1L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 
1L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 1L, 0L, 1L, 0L, 0L, 1L, 1L, 1L, 
1L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 1L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 
1L, 0L, 1L, 0L, 1L, 1L, 0L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 
1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 0L, 1L, 0L, 1L, 1L, 
0L, 0L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 0L, 0L, 
0L, 1L, 0L, 1L), news_u_log = c(5.37527840768417, 5.93489419561959, 
5.65948221575962, 1.38629436111989, 2.07944154167984, 1.79175946922805, 
8.1744211526465, 7.28138566357028, 6.62936325343745, 0, 0, 5.78074351579233, 
4.4188406077966, 3.2188758248682, 2.484906649788, 7.26052259808985, 
5.95324333428778, 7.35372233039963, 2.83321334405622, 3.36729582998647, 
1.6094379124341, 4.90527477843843, 5.03695260241363, 4.89034912822175, 
4.29045944114839, 3.40119738166216, 7.09672137849476, 3.17805383034795, 
5.30330490805908, 4.9416424226093, 3.61091791264422, 3.04452243772342, 
4.40671924726425, 2.484906649788, 4.77068462446567, 6.73696695800186, 
4.85981240436167, 4.68213122712422, 4.43081679884331, 3.04452243772342, 
2.30258509299405, 1.38629436111989, 8.27384693278451, 8.5956346177228, 
8.46547875572956, 4.54329478227, 4.17438726989564, 2.89037175789616, 
2.77258872223978, 3.61091791264422, 2.83321334405622, 2.30258509299405, 
6.91274282049318, 6.65544035036765, 7.35691824235602, 1.79175946922805, 
7.42356844425917, 3.40119738166216, 4.62497281328427, 4.27666611901606, 
3.55534806148941, 5.74300318780948, 5.87493073085203, 4.49980967033027, 
3.3322045101752, 1.79175946922805, 5.71042701737487, 6.40025744530882, 
6.92853781816467, 4.00733318523247, 4.15888308335967, 4.34380542185368, 
5.84643877505772, 5.5834963087817, 5.42053499927229, 4.58496747867057, 
5.07517381523383, 1.6094379124341, 4.52178857704904, 5.12396397940326, 
5.53733426701854, 2.94443897916644, 5.14166355650266, 4.9416424226093, 
NA, 3.25809653802148, 2.07944154167984, 2.63905732961526, 1.38629436111989, 
0.693147180559945, 2.83321334405622, 3.73766961828337, 4.85203026391962, 
3.13549421592915, 2.83321334405622, 3.04452243772342, 1.79175946922805, 
1.6094379124341, 2.07944154167984, NA, 0.693147180559945, 1.38629436111989, 
3.52636052461616, 4.70953020131233, 3.91202300542815, 3.17805383034795, 
6.24997524225948, 6.96318998587024, 7.56837926783652, 7.51643330291563, 
8.60502090178176, 5.23110861685459, 4.69134788222914, 5.51342874616498, 
5.82304589548302, 5.91350300563827, 5.25227342804663, 4.69134788222914, 
3.58351893845611, 5.06890420222023, 6.0282785202307, 6.07534603108868, 
5.92692602597041, 4.46590811865458, 6.38350663488401, 4.67282883446191, 
3.91202300542815, 4.72738781871234, 3.61091791264422, 1.38629436111989, 
5.36129216570943, 4.11087386417331, 3.04452243772342, 3.49650756146648, 
3.13549421592915, 3.93182563272433, 2.07944154167984, 0, 6.68336094576627, 
5.71373280550937, 3.71357206670431, 0, 3.36729582998647, 0, 0.693147180559945, 
2.07944154167984, 0, 4.56434819146784, 1.09861228866811, 4.69134788222914, 
1.79175946922805, 3.40119738166216, 3.95124371858143, 5.19849703126583, 
5.65248918026865, 3.3322045101752, 1.09861228866811, 2.56494935746154, 
4.00733318523247, 0.693147180559945, 4.29045944114839, 4.59511985013459, 
2.70805020110221, 3.71357206670431, 3.09104245335832, 0, 0, 3.09104245335832, 
1.38629436111989, 2.39789527279837, 2.484906649788, NA, 4.78749174278205, 
4.85981240436167, 3.80666248977032, 4.72738781871234, 6.289715570909, 
7.77317368048254, 8.06148686687133, 6.87729607149743, 4.62497281328427, 
5.04342511691925, 6.99576615630485, 5.09375020080676, 5.04342511691925, 
6.38350663488401, 3.2188758248682, 2.94443897916644, 2.484906649788, 
2.89037175789616, 1.38629436111989, 1.94591014905531, 4.77912349311153, 
5.7037824746562, 5.19295685089021, 6.02344759296103, 5.92958914338989, 
4.24849524204936, 2.07944154167984, 2.63905732961526, 3.17805383034795, 
1.38629436111989, 4.15888308335967, 1.38629436111989, 3.85014760171006, 
1.09861228866811, 3.04452243772342, 5.66988092298052, 5.74939298590825, 
5.66642668811243, 6.33859407820318, 6.64118216974059, 6.47543271670409, 
4.07753744390572, 2.63905732961526, 2.63905732961526, 2.83321334405622, 
3.71357206670431, 2.56494935746154, 3.93182563272433, 4.55387689160054, 
5.04985600724954, 4.87519732320115, 3.17805383034795, 4.34380542185368, 
4.53259949315326, 4.57471097850338, 4.77068462446567, 3.49650756146648, 
4.58496747867057, 4.68213122712422, 4.88280192258637, 4.8283137373023, 
5.15329159449778, 7.92153563213355, 3.93182563272433, 5.87493073085203, 
6.94408720822953, 6.76041469108343, 7.09589322109753, 3.29583686600433, 
3.68887945411394, 1.6094379124341, 4.969813299576, 3.80666248977032, 
2.94443897916644, 5.61312810638807, 7.3790081276283, 7.17930796950403, 
4.31748811353631, 4.47733681447821, 3.61091791264422, 6.51619307604296, 
6.18620862390049, 8.24143968982973, 5.19295685089021, 5.59842195899838, 
5.2257466737132, 6.99576615630485, 7.95787735848981, 6.38012253689976, 
3.87120101090789, 4.43081679884331, 2.77258872223978, 5.68357976733868, 
5.46806014113513, 4.12713438504509, 7.30114780585603, 7.25770767716004, 
6.94505106372583, 3.04452243772342, 2.30258509299405, 2.70805020110221, 
5.10594547390058, 5.11799381241676, 5.37527840768417, 3.46573590279973, 
1.09861228866811, 1.6094379124341, 5.11799381241676, 5.36597601502185, 
5.2040066870768, 4.96284463025991, 7.60489448081162, 6.16331480403464, 
4.92725368515721, 3.76120011569356, 2.77258872223978, 6.31173480915291, 
4.0943445622221, 4.04305126783455, 5.70711026474888, 6.45519856334012, 
6.24610676548156, 5.30826769740121, 4.26267987704132, 4.34380542185368, 
6.04500531403601, 4.49980967033027, 5.23110861685459, 2.56494935746154, 
2.484906649788, 2.56494935746154, 2.99573227355399, 6.11589212548303, 
4.27666611901606, NA, 2.63905732961526, 2.63905732961526, 6.90975328164481, 
7.09672137849476, 6.86693328446188, 5.44673737166631, 5.47646355193151, 
6.40357419793482, 5.3890717298165, 4.77912349311153, 3.93182563272433, 
4.31748811353631, 6.59441345974978, 5.24174701505964, 4.85981240436167, 
5.67675380226828, 4.9416424226093, 7.00669522683704, 6.89871453432999, 
6.06842558824411, 2.30258509299405, 3.13549421592915, 2.30258509299405, 
1.38629436111989, 4.14313472639153, 4.52178857704904, 6.60665018619822, 
5.98645200528444, 3.71357206670431, 6.45519856334012, 4.20469261939097, 
4.74493212836325, 7.20117088328168, 7.21229446850034, 5.4380793089232, 
2.19722457733622, 3.17805383034795, 2.77258872223978, 7.35244110024358, 
6.70441435496411, 5.41610040220442, 5.17048399503815, 5.63835466933375, 
4.98360662170834, 1.09861228866811, 1.38629436111989, 2.484906649788, 
5.29330482472449, 2.77258872223978, 5.25227342804663, NA, 1.6094379124341, 
4.90527477843843, 7.65633716643018, 7.42535788702715, 7.32184971378836, 
2.99573227355399, 3.76120011569356, 0.693147180559945, 5.75890177387728, 
7.32251043399739, 8.59822003005861, 7.07834157955767, 6.00388706710654, 
5.41610040220442, 6.93731408122368, 7.01121398735037, 5.47227067367148, 
4.99721227376411, 3.89182029811063, 4.53259949315326, 5.39362754635236, 
6.16961073249146, 5.4380793089232, 5.67675380226828, 5.04342511691925, 
5.30826769740121, 0.693147180559945, 1.38629436111989, 3.04452243772342, 
6.0282785202307, 4.94875989037817, 3.17805383034795, 7.63288550539513, 
7.13329595489607, 5.27811465923052, 6.72503364216684, 7.36454701425564, 
8.64979915596426, 2.56494935746154, 2.07944154167984, 4.77912349311153, 
8.12829017160705, 8.2358907259285, 6.82328612235569, 4.38202663467388, 
5.19295685089021, 4.86753445045558, 6.05678401322862, 5.02388052084628, 
4.11087386417331, 4.60517018598809, 3.85014760171006, 4.9416424226093, 
2.63905732961526, 5.96100533962327, 1.79175946922805, 3.3322045101752, 
3.25809653802148, 5.17048399503815, 4.18965474202643, 2.56494935746154, 
3.73766961828337, 7.49443021503157, 7.18159194461187, 6.91869521902047, 
2.77258872223978, 4.20469261939097, 4.85981240436167, 3.46573590279973, 
1.09861228866811, 3.58351893845611, 6.65286302935335, 6.0330862217988, 
5.50938833662798, 3.61091791264422, 3.73766961828337, 3.8286413964891, 
3.2188758248682, 0, 0, 5.57594910314632, 3.40119738166216, 3.55534806148941, 
0.693147180559945, 2.07944154167984, 2.07944154167984, 6.07764224334903, 
6.60934924316738, 6.54678541076052, 1.38629436111989, 1.38629436111989, 
2.83321334405622, 4.95582705760126, 4.85203026391962, 4.36944785246702, 
3.68887945411394, 6.29894924685594, 5.65599181081985, 3.40119738166216, 
1.38629436111989, 4.14313472639153, 3.91202300542815, 3.89182029811063, 
3.66356164612965, 2.19722457733622, 3.09104245335832, 3.09104245335832, 
5.4971682252932, 3.85014760171006, 5.31320597904179, 0, 0.693147180559945, 
0, 4.77912349311153, 2.89037175789616, 4.14313472639153, 0.693147180559945, 
0, 0.693147180559945, 3.61091791264422, 2.77258872223978, 1.6094379124341, 
3.66356164612965, 2.07944154167984, 2.56494935746154, 3.17805383034795, 
3.49650756146648, 3.55534806148941, 5.64897423816121, 4.91265488573605, 
4.83628190695148, 2.56494935746154, 3.43398720448515, 1.79175946922805, 
8.1185050675871, 8.94845599234554, 8.35678966992321, 1.6094379124341, 
1.79175946922805, 1.09861228866811, 7.34987370473834, 7.26473017792987, 
7.42237370098682, 7.57814547241947, 5.98896141688986, 6.63463335786169, 
7.87891291229713, 7.50052948539529, 5.50125821054473, 6.75693238924755, 
8.12503909736775, 7.1777824161952, 6.57368016696065, 6.65157187358973, 
5.76832099579377, 4.35670882668959, 5.48479693349065, 2.63905732961526, 
3.36729582998647, 3.66356164612965, 3.25809653802148, 2.83321334405622, 
0, 1.6094379124341), u_visits_log = c(8.97157543975902, 8.91355028049368, 
8.45935219172639, 9.57948721741024, 10.3630619862913, 9.21283725217477, 
10.1283895568652, 10.0646705901275, 8.44677072711969, 6.84268328223842, 
6.49526555593701, 9.67909321932027, 10.208469122066, 9.30891793533718, 
10.2946170618769, 9.88374392349952, 9.27799902045, 9.86256138592348, 
9.08873755021693, 9.14942195700677, 8.14931284363534, 8.62173337069016, 
8.87248718227804, 8.71391062849392, 9.25320827220336, 9.14163317396639, 
11.059361953371, 9.68427376955777, 9.44295889365291, 9.43843166301433, 
8.78615105486974, 9.21671997894022, 9.28831941329277, 5.3890717298165, 
9.28368376620039, 9.2387334464774, 8.24485939591126, 8.02845516411425, 
8.84375938191798, 8.41205487329293, 8.09437844497296, 8.55525939222269, 
10.5872912180929, 10.7735667926056, 10.5549008646118, 9.43946599496794, 
10.0554787595222, 8.47114925291483, 8.83083536553755, 9.33131829852909, 
9.23552067050648, 7.32448997934853, 9.12641513703842, 9.32634404773249, 
9.65585917954152, 8.10922495308995, 9.30665005211359, 8.21500643276157, 
9.67746486047107, 9.80840734628586, 9.71020615550583, 8.73953642255968, 
10.225897085507, 9.40360186880847, 9.59321898141155, 8.87122464440955, 
9.91950852859031, 10.2556222049326, 9.96693172509266, 8.8408696240914, 
9.76007896924077, 8.8071726229167, 10.215227890081, 10.436113806261, 
9.7001466285181, 11.4690362714005, 11.001849809949, 10.5970846318764, 
9.60777330838708, 10.1300652005846, 10.1758783064189, 10.5054784140542, 
9.99410492011974, 10.1530393171266, NA, 10.1614961911764, 9.28005298438748, 
10.3292780271055, 10.0120280068256, 7.23489842031483, 8.21932609390609, 
9.5682245844549, 9.62132356076825, 9.50673438502998, 9.68252911212726, 
9.1756454021793, 10.4746930622908, 9.9335801928433, 10.0690019910137, 
NA, 7.87092959675514, 5.98393628068719, 10.5392704157065, 10.7407134318139, 
10.427831392103, 9.05028898382796, 10.2025174936815, 10.6745675241525, 
10.3018944768324, 10.2706275463226, 10.7323886540737, 9.63023421673647, 
9.05847042263806, 10.1142750816408, 10.6864982887543, 10.6788136190537, 
9.42947590189285, 10.0342964926475, 9.6237075099802, 10.7440628671625, 
9.7890302305583, 9.71256914851666, 9.64426335290083, 9.82574220391128, 
9.65797057224503, 6.50727771238501, 9.6975083473915, 9.99346535865436, 
8.60538720215215, 8.00068478451475, 10.0479774310211, 9.90772854679338, 
9.81841974014606, 10.0902990146029, 10.120130017508, 8.86644061952617, 
6.86171134048073, 6.69826805411541, 10.0729771305147, 9.69504786758711, 
9.10731047165664, 8.49902922078857, 9.36349055146986, 8.02878116248715, 
9.62747051161485, 9.62364136585212, 9.2758471741783, 10.2993062835925, 
9.11437998083027, 10.1289085085944, 9.61253346621393, 9.27491014262548, 
9.54409463253035, 8.69399956752208, 9.89726825272221, 8.10621290261996, 
8.72518249495877, 9.18789024313859, 9.11338884589973, 8.08147504013705, 
8.00235954625271, 8.71177264560569, 8.19478163844336, 10.0943558152985, 
8.96852355539635, 8.00436556497957, 7.1929342212158, 8.78293635634926, 
7.86672228513673, 7.80547462527086, 7.95717732345947, NA, 9.12826226094058, 
9.24067557177226, 9.70570712067963, 7.69893619981345, 8.10892415597534, 
10.0738630383117, 10.3361137687067, 9.8978215309095, 10.4454338649599, 
10.5335085474763, 10.6231549429055, 10.1881400404275, 10.0280034272337, 
10.2344446084692, 8.36474106822456, 7.85205020726589, 8.21256839823415, 
8.88350158432321, 7.65254569269392, 6.41999492814714, 8.15104494568502, 
8.66198593631778, 9.13507788747564, 10.3257114444592, 9.83862898018763, 
8.10137467122858, 8.61902749729751, 9.10553525761006, 8.5016733797582, 
10.5800733472968, 8.07402621612406, 9.33149549353265, 8.77832592863448, 
7.18387071506245, 9.61045787375775, 10.3358217647463, 10.0170840591187, 
10.5443145958964, 9.19735644441789, 9.65521848244118, 9.02449260540567, 
9.9547033439204, 9.37644785490711, 9.64652865272719, 9.39499254410842, 
9.76634966431749, 9.30455904721516, 10.4568840406576, 10.1042627879883, 
10.150699131184, 9.46273199764938, 7.17548971362422, 7.87435882472988, 
9.31388924760474, 9.78667279794429, 9.71359742624222, 9.50688307286016, 
9.7562628327796, 9.26331225674229, 10.0087480631936, 10.029503273119, 
9.68539372985402, 9.80939662913653, 9.1099673978294, 7.91826468609527, 
10.125270178211, 9.80189769677449, 10.1761828826796, 8.13329386122263, 
8.5358186555394, 7.03790596344718, 9.709113657218, 8.91838250466161, 
8.51759311143756, 10.0052315364194, 10.9864953892252, 10.8212172486045, 
8.99640430141289, 9.71950461641551, 8.72583205652757, 10.5426536192296, 
10.0463316965656, 10.9465166566272, 10.8417354517623, 10.7610468693465, 
10.6929217084076, 10.6887352218944, 11.0208888831008, 9.41001056710475, 
9.46846489218564, 9.55577234996887, 9.15122710748368, 10.8108182630388, 
10.6547385332509, 9.28451977015043, 10.291908226035, 9.76491490267219, 
9.8501395170342, 9.23776096755218, 9.30337523794337, 8.791638037086, 
8.92385758009988, 9.04852707581358, 9.7410862631773, 9.46436224293533, 
7.45645455517621, 9.28191657046541, 10.7124825641179, 11.0173332218448, 
10.7947271075434, 9.08658956454001, 10.9463052028819, 10.0362686637699, 
10.3492625240478, 9.48615227185748, 8.22335889947926, 9.19136140537838, 
8.41294317004244, 8.13563990335439, 9.67746486047107, 9.60945200611217, 
9.64827267022185, 10.3500946039755, 10.2879673342352, 9.55958780008612, 
9.72454029638112, 8.9182485910357, 10.1051214203625, 7.85748078694253, 
7.90544164906029, 7.70526247486633, 9.06912237006065, 9.04511189260841, 
9.48637993264389, NA, 10.0558222988394, 8.38753998318937, 9.50211406233122, 
9.59804875849509, 9.05473863988161, 9.83788179543813, 9.58121403531473, 
9.64756251169754, 9.61906682278672, 8.58951385299586, 7.98718474823347, 
9.45774717542607, 10.4112083613486, 9.79489961211923, 9.97882690908194, 
9.90158574524653, 8.8340456411678, 11.7695502129567, 11.6227748903803, 
11.5969540645657, 7.97418866928601, 8.05642676752298, 7.67786350067821, 
8.43446354381724, 9.57463620304628, 9.92568926051981, 10.2819239882564, 
9.50539519875738, 7.19668657083435, 11.1341801815614, 10.3075182991061, 
10.9566839776738, 9.80410910855585, 10.1071220334621, 8.82922635473185, 
8.87486763568805, 9.10420177591451, 6.84374994900622, 10.4923292162868, 
10.2339417168318, 10.1712602419935, 9.01152351265303, 8.22710823434815, 
8.25035895147729, 8.96916013317582, 8.57357352485234, 9.62720690280879, 
9.30273722124215, 8.29903718161307, 9.92054130710196, NA, 8.88530251298063, 
8.8206993992149, 10.7154616681443, 9.96189796008255, 9.46583494017472, 
9.82265703462158, 10.0708646619443, 6.48463523563525, 9.46039845583127, 
9.66839793020352, 10.2900416357525, 10.1802476972874, 9.43994301835113, 
9.70442667173788, 9.81022028456569, 10.0080277318101, 8.85537824604113, 
9.91081067291591, 8.9254543868264, 9.36999018950572, 9.27921323626256, 
9.85503233226672, 9.95313449242554, 10.7574772582129, 9.33899740418445, 
10.5668969148321, 8.84332645024227, 9.91487249740269, 9.95565296651681, 
9.48113057675775, 9.45163813387043, 8.77724709675054, 10.6509808628362, 
10.3869317019609, 9.38479775371334, 9.29109052166129, 9.35513311687772, 
10.4307277175702, 9.19542975924043, 8.56483984488359, 9.93842023907615, 
10.7684639371695, 10.6115479758284, 8.85295088709958, 9.49439085819391, 
9.3604830304059, 9.02965747185074, 9.39756654810359, 9.42011495555144, 
8.47386806667786, 10.2432045193222, 9.27883978840087, 9.32062872587031, 
7.91095738284559, 8.53601494565683, 5.39362754635236, 9.57872647184293, 
8.33182700443606, 9.11151401766929, 9.10453531307921, 9.15936281721132, 
8.22924441673591, 9.8292488026006, 9.74589763196136, 9.53870842969938, 
9.2057297594185, 10.8791597809254, 10.7395222206446, 9.14952823257943, 
8.14554963178358, 8.58129411682276, 9.53726719575386, 9.58911921482184, 
8.28626945278307, 7.40062057737113, 7.50163445788341, 7.60090245954208, 
8.62497078358967, 8.34972083747249, 7.49997654095212, 10.2832587135525, 
7.83952558170468, 9.19360104797189, 8.66871183905515, 9.17895289873455, 
8.58746524440157, 10.724456104534, 10.8393455899028, 10.6343158000638, 
8.70748291785937, 8.04366335239394, 8.48156601377309, 7.97039490719143, 
8.24695803256818, 7.7445698093545, 9.30355745368732, 10.1929804843919, 
9.77389126436506, 8.14235427684983, 6.69208374250663, 9.42867236629317, 
9.28256800597306, 8.36683530982767, 6.60258789218934, 8.27868216297091, 
8.68794811183873, 8.84548923675327, 9.54122560172861, 9.26236340004333, 
9.19471899107323, 10.3943043277438, 8.81373589230022, 8.73359406186306, 
9.60831079832209, 8.75557997214314, 8.25426877009018, 8.89274876911826, 
8.34521792667643, 8.67351294567119, 9.02701831484864, 9.04735074348172, 
8.55140136274597, 8.90463009700501, 8.2398574110186, 6.21060007702465, 
8.06400734709666, 8.21148291644507, 8.60940767540405, 9.78199765494842, 
8.90340751993226, 9.09672364518921, 8.66354208775137, 8.96826881077645, 
8.81373589230022, 11.1417313402894, 11.5431151361333, 10.8645986746818, 
8.30251371851416, 8.74193546409414, 8.10107150311954, 10.5629486754413, 
10.6748681126145, 10.9975394584479, 10.4376096928526, 9.62944536578838, 
10.2221230853096, 10.3193649309916, 9.64542900515042, 8.2845042272585, 
9.10063710688422, 9.83708062033853, 9.69134575932969, 10.3015251448155, 
9.93207500938804, 9.92603151697102, 9.39880965935637, 10.4356734134234, 
9.00220857828241, 7.83676478326407, 9.29587566008245, 9.33034316437088, 
9.17730051789798, 6.3578422665081, 7.96970358327866), weight = c(1.67728197359262, 
1.67728197359262, 1.67728197359262, 0.437515288638368, 0.437515288638368, 
0.437515288638368, 0.770469304986858, 0.770469304986858, 0.770469304986858, 
5.00005487497664, 5.00005487497664, 5.00005487497664, 0.794606026147162, 
0.794606026147162, 0.794606026147162, 1.47974227838427, 1.47974227838427, 
1.47974227838427, 0.437515288638368, 0.437515288638368, 0.437515288638368, 
1.06998665548284, 1.06998665548284, 1.06998665548284, 1.88537623578068, 
1.88537623578068, 1.88537623578068, 0.770469304986858, 0.770469304986858, 
0.770469304986858, 1.04075295905387, 1.04075295905387, 1.04075295905387, 
0.749418887531269, 0.749418887531269, 0.749418887531269, 0.759439194492936, 
0.759439194492936, 0.759439194492936, 0.816837576308929, 0.816837576308929, 
0.816837576308929, 0.698586469259784, 0.698586469259784, 0.698586469259784, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.437515288638368, 
0.437515288638368, 0.437515288638368, 1.49254767179094, 1.49254767179094, 
1.49254767179094, 0.89008629882392, 0.89008629882392, 0.89008629882392, 
0.967620261131432, 0.967620261131432, 0.967620261131432, 0.759439194492936, 
0.759439194492936, 0.759439194492936, 0.738690136778709, 0.738690136778709, 
0.738690136778709, 0.563983632267003, 0.563983632267003, 0.563983632267003, 
0.533307285159432, 0.533307285159432, 0.533307285159432, 0.794606026147162, 
0.794606026147162, 0.794606026147162, 0.816837576308929, 0.816837576308929, 
0.816837576308929, 0.534343902248553, 0.534343902248553, 0.534343902248553, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.816837576308929, 
0.816837576308929, 0.816837576308929, 1.9383345445241, 1.9383345445241, 
1.9383345445241, 0.579762810877004, 0.579762810877004, 0.579762810877004, 
1.70164285150404, 1.70164285150404, 1.70164285150404, 0.402457843831888, 
0.402457843831888, 0.402457843831888, 0.518792468498778, 0.518792468498778, 
0.518792468498778, 0.443869769696834, 0.443869769696834, 0.443869769696834, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.563983632267003, 
0.563983632267003, 0.563983632267003, 3.09552336844656, 3.09552336844656, 
3.09552336844656, 0.698586469259784, 0.698586469259784, 0.698586469259784, 
1.88537623578068, 1.88537623578068, 1.88537623578068, 0.967620261131432, 
0.967620261131432, 0.967620261131432, 0.770469304986858, 0.770469304986858, 
0.770469304986858, 1.11668057676614, 1.11668057676614, 1.11668057676614, 
1.47974227838427, 1.47974227838427, 1.47974227838427, 0.581431050826477, 
0.581431050826477, 0.581431050826477, 1.09890354755712, 1.09890354755712, 
1.09890354755712, 0.43055025116271, 0.43055025116271, 0.43055025116271, 
0.579762810877004, 0.579762810877004, 0.579762810877004, 0.436803571873503, 
0.436803571873503, 0.436803571873503, 0.749418887531269, 0.749418887531269, 
0.749418887531269, 3.09552336844656, 3.09552336844656, 3.09552336844656, 
4.28096628920089, 4.28096628920089, 4.28096628920089, 0.443869769696834, 
0.443869769696834, 0.443869769696834, 1.67728197359262, 1.67728197359262, 
1.67728197359262, 0.443869769696834, 0.443869769696834, 0.443869769696834, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.396050904377531, 
0.396050904377531, 0.396050904377531, 0.43055025116271, 0.43055025116271, 
0.43055025116271, 0.579762810877004, 0.579762810877004, 0.579762810877004, 
0.396050904377531, 0.396050904377531, 0.396050904377531, 0.396050904377531, 
0.396050904377531, 0.396050904377531, 0.794606026147162, 0.794606026147162, 
0.794606026147162, 0.437515288638368, 0.437515288638368, 0.437515288638368, 
0.972045358833859, 0.972045358833859, 0.972045358833859, 0.794606026147162, 
0.794606026147162, 0.794606026147162, 0.981673997722632, 0.981673997722632, 
0.981673997722632, 1.67728197359262, 1.67728197359262, 1.67728197359262, 
0.588183297876637, 0.588183297876637, 0.588183297876637, 0.579762810877004, 
0.579762810877004, 0.579762810877004, 0.533307285159432, 0.533307285159432, 
0.533307285159432, 0.563983632267003, 0.563983632267003, 0.563983632267003, 
0.749418887531269, 0.749418887531269, 0.749418887531269, 0.606609491055402, 
0.606609491055402, 0.606609491055402, 0.402457843831888, 0.402457843831888, 
0.402457843831888, 0.572174942151689, 0.572174942151689, 0.572174942151689, 
1.67728197359262, 1.67728197359262, 1.67728197359262, 0.518792468498778, 
0.518792468498778, 0.518792468498778, 0.437515288638368, 0.437515288638368, 
0.437515288638368, 1.04075295905387, 1.04075295905387, 1.04075295905387, 
0.436803571873503, 0.436803571873503, 0.436803571873503, 1.09890354755712, 
1.09890354755712, 1.09890354755712, 0.443869769696834, 0.443869769696834, 
0.443869769696834, 0.402457843831888, 0.402457843831888, 0.402457843831888, 
1.43946870914295, 1.43946870914295, 1.43946870914295, 2.46967998456383, 
2.46967998456383, 2.46967998456383, 0.436803571873503, 0.436803571873503, 
0.436803571873503, 0.61642264951224, 0.61642264951224, 0.61642264951224, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.738690136778709, 
0.738690136778709, 0.738690136778709, 0.749418887531269, 0.749418887531269, 
0.749418887531269, 1.34429397469877, 1.34429397469877, 1.34429397469877, 
0.57310722962594, 0.57310722962594, 0.57310722962594, 0.742068296743283, 
0.742068296743283, 0.742068296743283, 0.436803571873503, 0.436803571873503, 
0.436803571873503, 0.402457843831888, 0.402457843831888, 0.402457843831888, 
2.36315078579042, 2.36315078579042, 2.36315078579042, 0.738690136778709, 
0.738690136778709, 0.738690136778709, 0.43055025116271, 0.43055025116271, 
0.43055025116271, 0.698586469259784, 0.698586469259784, 0.698586469259784, 
2.36315078579042, 2.36315078579042, 2.36315078579042, 0.43055025116271, 
0.43055025116271, 0.43055025116271, 1.34429397469877, 1.34429397469877, 
1.34429397469877, 0.581431050826477, 0.581431050826477, 0.581431050826477, 
0.563983632267003, 0.563983632267003, 0.563983632267003, 0.807460415932217, 
0.807460415932217, 0.807460415932217, 0.738690136778709, 0.738690136778709, 
0.738690136778709, 0.742068296743283, 0.742068296743283, 0.742068296743283, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.396050904377531, 
0.396050904377531, 0.396050904377531, 0.742068296743283, 0.742068296743283, 
0.742068296743283, 0.57310722962594, 0.57310722962594, 0.57310722962594, 
0.749418887531269, 0.749418887531269, 0.749418887531269, 0.57310722962594, 
0.57310722962594, 0.57310722962594, 2.46967998456383, 2.46967998456383, 
2.46967998456383, 0.759439194492936, 0.759439194492936, 0.759439194492936, 
1.46275508158645, 1.46275508158645, 1.46275508158645, 0.402457843831888, 
0.402457843831888, 0.402457843831888, 0.579762810877004, 0.579762810877004, 
0.579762810877004, 0.689923879462086, 0.689923879462086, 0.689923879462086, 
1.09890354755712, 1.09890354755712, 1.09890354755712, 0.698586469259784, 
0.698586469259784, 0.698586469259784, 0.967620261131432, 0.967620261131432, 
0.967620261131432, 0.396050904377531, 0.396050904377531, 0.396050904377531, 
0.437515288638368, 0.437515288638368, 0.437515288638368, 0.563983632267003, 
0.563983632267003, 0.563983632267003, 0.738690136778709, 0.738690136778709, 
0.738690136778709, 0.770469304986858, 0.770469304986858, 0.770469304986858, 
0.606609491055402, 0.606609491055402, 0.606609491055402, 1.06998665548284, 
1.06998665548284, 1.06998665548284, 1.70164285150404, 1.70164285150404, 
1.70164285150404, 1.47974227838427, 1.47974227838427, 1.47974227838427, 
0.43055025116271, 0.43055025116271, 0.43055025116271, 0.579762810877004, 
0.579762810877004, 0.579762810877004, 0.563983632267003, 0.563983632267003, 
0.563983632267003, 0.43055025116271, 0.43055025116271, 0.43055025116271, 
0.526694185062667, 0.526694185062667, 0.526694185062667, 0.534343902248553, 
0.534343902248553, 0.534343902248553, 0.396050904377531, 0.396050904377531, 
0.396050904377531, 0.742068296743283, 0.742068296743283, 0.742068296743283, 
1.54288388113481, 1.54288388113481, 1.54288388113481, 0.437515288638368, 
0.437515288638368, 0.437515288638368, 0.563983632267003, 0.563983632267003, 
0.563983632267003, 2.19709447909541, 2.19709447909541, 2.19709447909541, 
3.09552336844656, 3.09552336844656, 3.09552336844656, 0.57310722962594, 
0.57310722962594, 0.57310722962594, 1.46275508158645, 1.46275508158645, 
1.46275508158645, 0.572174942151689, 0.572174942151689, 0.572174942151689, 
0.518792468498778, 0.518792468498778, 0.518792468498778, 0.967620261131432, 
0.967620261131432, 0.967620261131432, 0.526694185062667, 0.526694185062667, 
0.526694185062667, 0.698586469259784, 0.698586469259784, 0.698586469259784, 
1.9383345445241, 1.9383345445241, 1.9383345445241, 0.527185005665868, 
0.527185005665868, 0.527185005665868, 1.06998665548284, 1.06998665548284, 
1.06998665548284, 0.699944348089522, 0.699944348089522, 0.699944348089522, 
0.518792468498778, 0.518792468498778, 0.518792468498778, 4.28096628920089, 
4.28096628920089, 4.28096628920089, 1.76090896855322, 1.76090896855322, 
1.76090896855322, 0.770469304986858, 0.770469304986858, 0.770469304986858, 
0.436803571873503, 0.436803571873503, 0.436803571873503, 0.518792468498778, 
0.518792468498778, 0.518792468498778, 0.43055025116271, 0.43055025116271, 
0.43055025116271, 0.807460415932217, 0.807460415932217, 0.807460415932217, 
0.572174942151689, 0.572174942151689, 0.572174942151689, 0.43055025116271, 
0.43055025116271, 0.43055025116271, 0.742068296743283, 0.742068296743283, 
0.742068296743283, 0.967620261131432, 0.967620261131432, 0.967620261131432, 
0.43055025116271, 0.43055025116271, 0.43055025116271, 0.579762810877004, 
0.579762810877004, 0.579762810877004, 0.794606026147162, 0.794606026147162, 
0.794606026147162, 0.981673997722632, 0.981673997722632, 0.981673997722632, 
0.689923879462086, 0.689923879462086, 0.689923879462086, 0.742068296743283, 
0.742068296743283, 0.742068296743283, 1.76090896855322, 1.76090896855322, 
1.76090896855322), wave_weight = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1, 1, 1, 1, 1, 1, 1, 1, 1)), class = "data.frame", row.names = c(NA, 
-522L))

Running a logistic model on outcome "participation_bin" causes my R to crash:

summary(mix(participation_bin ~ news_u_log + u_visits_log + (1 | person_id), dt, 
            weights=c("wave_weight", "weight"), 
            family = binomial(link="logit")))

My version:

> version
               _                           
platform       x86_64-apple-darwin17.0     
arch           x86_64                      
os             darwin17.0                  
system         x86_64, darwin17.0          
status                                     
major          4                           
minor          0.3                         
year           2020                        
month          10                          
day            10                          
svn rev        79318                       
language       R                           
version.string R version 4.0.3 (2020-10-10)
nickname       Bunny-Wunnies Freak Out    
pdbailey0 commented 2 years ago

@BernhardClemm thank you for the reproducible example. We have tried it on Windows and it works but I see you are using an Apple, so we will test there next. Have you tried upgrading to the latest R version, 4.1.2? If you want to stay with 4.0 you may want to upgrade to 4.0.5.

Also, notice the second warning.


> m1 <- mix(participation_bin ~ news_u_log + u_visits_log + (1 | person_id), dt, 
+             weights=c("wave_weight", "weight"), 
+             family = binomial(link="logit"))
Warning messages:
1: In mix(participation_bin ~ news_u_log + u_visits_log + (1 | person_id),  :
  There were 5 rows with missing data. These have been removed.
2: In mix(participation_bin ~ news_u_log + u_visits_log + (1 | person_id),  :
  Group variances too small to estimate accurately. The estimated variance in the group level terms(s) “person_id:(Intercept)” is near zero. Very low variance suggests that the data is not hierarchical and that a model without these levels should be considered. If this removes all groups then a non-hierarchical model, such as logistic regression, should be considered.
> summary(m1)
Call:
mix(formula = participation_bin ~ news_u_log + u_visits_log + 
    (1 | person_id), data = dt, weights = c("wave_weight", 
    "weight"), family = binomial(link = "logit"))

Variance terms:
 Level     Group        Name Variance Std. Error Std.Dev.
     2 person_id (Intercept)   0.1254    0.01672   0.3542
Groups:
 Level     Group n size mean wgt sum wgt
     2 person_id    174   0.9215   160.3
     1       Obs    517   1.0000   517.0

Fixed Effects:
             Estimate Std. Error t value
(Intercept)   0.68552    1.06757   0.642
news_u_log    0.09744    0.05925   1.645
u_visits_log -0.12337    0.12820  -0.962
pdbailey0 commented 2 years ago

@BernhardClemm strangely my R session became non-responsive when I just pasted in dt under 4.0.4 on an x86_64 Apple, but when I upgraded to R 4.1.2 it worked. Can you upgrade your R and see if you still have this issue?

> version
               _                           
platform       x86_64-apple-darwin17.0     
arch           x86_64                      
os             darwin17.0                  
system         x86_64, darwin17.0          
status                                     
major          4                           
minor          1.2                         
year           2021                        
month          11                          
day            01                          
svn rev        81115                       
language       R                           
version.string R version 4.1.2 (2021-11-01)
nickname       Bird Hippie   

if you do, can you please post the results of sessionInfo() here is mine

R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.6

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] WeMix_3.2.0   lme4_1.1-27.1 Matrix_1.3-4 

loaded via a namespace (and not attached):
 [1] gmp_0.6-2.1         Rcpp_1.0.7          compiler_4.1.2      pillar_1.6.4        nloptr_1.2.2.3      RColorBrewer_1.1-2 
 [7] plyr_1.8.6          tools_4.1.2         statmod_1.4.36      boot_1.3-28         lifecycle_1.0.1     tibble_3.1.6       
[13] nlme_3.1-153        gtable_0.3.0        lattice_0.20-45     pkgconfig_2.0.3     NPflow_0.13.3       rlang_0.4.12       
[19] Rmpfr_0.8-7         stringr_1.4.0       vctrs_0.3.8         grid_4.1.2          glue_1.5.0          ellipse_0.4.2      
[25] R6_2.5.1            fansi_0.5.0         pheatmap_1.0.12     minqa_1.2.4         ggplot2_3.3.5       reshape2_1.4.4     
[31] fastcluster_1.2.3   magrittr_2.0.1      scales_1.1.1        ellipsis_0.3.2      MASS_7.3-54         splines_4.1.2      
[37] colorspace_2.0-2    numDeriv_2016.8-1.1 utf8_1.2.2          stringi_1.7.5       munsell_0.5.0       truncnorm_1.0-8    
[43] crayon_1.4.2       
BernhardClemm commented 2 years ago

Hi @pdbailey0, thanks for your help on this. I updated R to 4.1.2 but unfortunately, the problem persists - R still crashing after 3-4 minutes into running the mix command.

sessionInfo()

R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] WeMix_3.2.0   lme4_1.1-27.1 Matrix_1.3-4 

loaded via a namespace (and not attached):
 [1] gmp_0.6-2.1         Rcpp_1.0.7          compiler_4.1.2      pillar_1.6.4        nloptr_1.2.2.3      RColorBrewer_1.1-2  plyr_1.8.6          tools_4.1.2        
 [9] statmod_1.4.36      boot_1.3-28         lifecycle_1.0.1     tibble_3.1.6        nlme_3.1-153        gtable_0.3.0        lattice_0.20-45     pkgconfig_2.0.3    
[17] NPflow_0.13.3       rlang_0.4.12        Rmpfr_0.8-7         stringr_1.4.0       vctrs_0.3.8         grid_4.1.2          glue_1.5.0          ellipse_0.4.2      
[25] R6_2.5.1            fansi_0.5.0         pheatmap_1.0.12     minqa_1.2.4         ggplot2_3.3.5       reshape2_1.4.4      fastcluster_1.2.3   magrittr_2.0.1     
[33] scales_1.1.1        ellipsis_0.3.2      MASS_7.3-54         splines_4.1.2       colorspace_2.0-2    numDeriv_2016.8-1.1 utf8_1.2.2          stringi_1.7.5      
[41] munsell_0.5.0       truncnorm_1.0-8     crayon_1.4.2    
pdbailey0 commented 2 years ago

@BernhardClemm thanks for reporting back. Can you run R at the command line and share the error? So put everything in your original post in a file named, say myFile.R file and in the Terminal app cd to the folder with myFile.R in it and run

R myFile.R

and then share the output in myFile.Rout?

BernhardClemm commented 2 years ago

@pdbailey0 sorry for the late reply. Ran the above code at the command line, and this is what I get when R aborts:

 *** caught illegal operation ***
address 0x113b7523b, cause 'illegal opcode'

Traceback:
 1: mpfr.default(log(grd$w[i]) + agg$lli + agg$g_weight + sum(v *     v), acc)
 2: mpfr(log(grd$w[i]) + agg$lli + agg$g_weight + sum(v * v), acc)
 3: calc.lin.lnl.quad(y = y, yhat = yyh0, level = levels, Z = Z,     ZFull = ZFull, Qi = Qi, QiFull = QiFull, omega = omega, omegaFull = omegaFull,     W = W, C = parC, qp = qp, top = top, verbose = verbose, acc = acc,     integralMultiplierExponent = integralMultiplierExponent,     integralZColumn = integralZColumn, family = family)
 4: fn0(est, varFloor = -3.59)
 5: mix(participation_bin ~ news_u_log + u_visits_log + (1 | person_id),     dt, weights = c("wave_weight", "weight"), family = binomial(link = "logit"))
 6: summary(mix(participation_bin ~ news_u_log + u_visits_log + (1 |     person_id), dt, weights = c("wave_weight", "weight"), family = binomial(link = "logit")))
An irrecoverable exception occurred. R is aborting now ...
zsh: illegal hardware instruction  Rscript myfile.R

(I don't see a myfile.out in the folder where myfile.R is located - would it have any other information?)

pdbailey0 commented 2 years ago

Thanks, this is what I needed. This appears to be in mpfr.default.

We are both running the latest Rmprf, but it could be that you have an older processor and Rmpfr is using a call not available on your machine (see this SO post for an example of that).

However, I don't see anything about this on the mpfr bug site.

What machine do you have? From the "System report" under "About this Mac" I ran on a Macbook Pro 13,3 with Quad-Core Intel Core i7. I would try building mpfr from source instead of using the CRAN binary. I'm attempting this and it is difficult.

BernhardClemm commented 2 years ago

I am running it on an Apple M1 chip:

Hardware Overview:

Model Name: MacBook Air Model Identifier: MacBookAir10,1 Chip: Apple M1 Total Number of Cores: 8 (4 performance and 4 efficiency) Memory: 8 GB System Firmware Version: 6723.140.2 OS Loader Version: 6723.140.2 Serial Number (system): C02F10SYQ6LW Hardware UUID: CB8B9CA0-165D-5EE3-95BB-3CA16812EB42 Provisioning UDID: 00008103-000E40883CF2001E Activation Lock Status: Enabled

pdbailey0 commented 2 years ago

@BernhardClemm I'd try the ARM64 version of R.

image
pdbailey0 commented 2 years ago

Since this was a Rosetta issue in mpfr, I'm closing this. Probably the best next step is to move to the ARM64 version or follow up with the developers of mpfr if you are still having problems.

BernhardClemm commented 2 years ago

Sorry for never getting back. Thanks for your help in any case!