Hi, I ran stan_glm() and it crashed 2 of the chains! Data are attached. My R code is below, then I'll show you the output in the R console. There's no way this should be happening!
A
--
library("rstanarm")
options(mc.cores = parallel::detectCores())
library("arm")
library("loo")
wells <- read.csv("wells.csv")
N <- nrow(wells)
dist100 <- wells$dist100
arsenic <- wells$arsenic
y <- wells$y
bayes_fit_3 <- stan_glm(y ~ dist100 + arsenic, family=binomial(link="logit"), prior=normal(0, 10, autoscale=FALSE))
# This fits just fine.
log_arsenic <- log(arsenic)
bayes_fit_3a <- stan_glm(y ~ dist100 + log(arsenic), family=binomial(link="logit"), prior=normal(0, 10, autoscale=FALSE))
# This fits fine too.
bayes_fit_4a <- stan_glm(y ~ dist100 + log_arsenic + dist100:log_arsenic, family=binomial(link="logit"), prior=normal(0, 10, autoscale=FALSE))
# This one also works.
bayes_fit_4 <- stan_glm(y ~ dist100 + arsenic + dist100:arsenic, family=binomial(link="logit"), prior=normal(0, 10, autoscale=FALSE))
# This one has big, big problems It runs really slowly and then returns these warnings:
Warning messages:
1: There were 981 divergent transitions after warmup. Increasing adapt_delta above 0.95 may help. See
http://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
2: There were 1 chains where the estimated Bayesian Fraction of Missing Information was low. See
http://mc-stan.org/misc/warnings.html#bfmi-low
3: Examine the pairs() plot to diagnose sampling problems
4: Markov chains did not converge! Do not analyze results!
# Why such problems? The simple glm(y ~ dist100 + arsenic + dist100:arsenic, family=binomial(link="logit")) runs just fine, it's not like the variables are collinear or anything. And in my stan_glm run I had proper priors. Sure, N(0,10) is vague, but it's not _that_ vague.
# And now the model that fails:
noise <- array(rnorm(5*n), c(n, 5))
write.table(noise, "noise.txt") # File is attached so this can be reproduced
bayes_fit_4b <- stan_glm(y ~ dist100 + log_arsenic + dist100:log_arsenic + noise, family=binomial(link="logit"), prior=normal(0, 10, autoscale=FALSE))
# See error messages below.
starting worker pid=49971 on localhost:11411 at 00:32:46.920
starting worker pid=49979 on localhost:11411 at 00:32:47.077
starting worker pid=49987 on localhost:11411 at 00:32:47.237
starting worker pid=49995 on localhost:11411 at 00:32:47.405
SAMPLING FOR MODEL 'bernoulli' NOW (CHAIN 1).
[1] "Rejecting initial value:"
[2] " Log probability evaluates to log(0), i.e. negative infinity."
[3] " Stan can't start sampling from this initial value."
[4] "Rejecting initial value:"
[5] " Log probability evaluates to log(0), i.e. negative infinity."
[6] " Stan can't start sampling from this initial value."
[7] "Rejecting initial value:"
[8] " Log probability evaluates to log(0), i.e. negative infinity."
[9] " Stan can't start sampling from this initial value."
[10] "Rejecting initial value:"
[11] " Log probability evaluates to log(0), i.e. negative infinity."
[12] " Stan can't start sampling from this initial value."
[13] "Rejecting initial value:"
[14] " Log probability evaluates to log(0), i.e. negative infinity."
[15] " Stan can't start sampling from this initial value."
[16] "Rejecting initial value:"
[17] " Log probability evaluates to log(0), i.e. negative infinity."
[18] " Stan can't start sampling from this initial value."
[19] "Rejecting initial value:"
[20] " Log probability evaluates to log(0), i.e. negative infinity."
[21] " Stan can't start sampling from this initial value."
[22] "Rejecting initial value:"
[23] " Log probability evaluates to log(0), i.e. negative infinity."
[24] " Stan can't start sampling from this initial value."
[25] "Rejecting initial value:"
[26] " Log probability evaluates to log(0), i.e. negative infinity."
[27] " Stan can't start sampling from this initial value."
[28] "Rejecting initial value:"
[29] " Log probability evaluates to log(0), i.e. negative infinity."
[30] " Stan can't start sampling from this initial value."
[31] "Rejecting initial value:"
[32] " Log probability evaluates to log(0), i.e. negative infinity."
[33] " Stan can't start sampling from this initial value."
[34] "Rejecting initial value:"
[35] " Log probability evaluates to log(0), i.e. negative infinity."
[36] " Stan can't start sampling from this initial value."
[37] "Rejecting initial value:"
[38] " Log probability evaluates to log(0), i.e. negative infinity."
[39] " Stan can't start sampling from this initial value."
[40] "Rejecting initial value:"
[41] " Log probability evaluates to log(0), i.e. negative infinity."
[42] " Stan can't start sampling from this initial value."
[43] "Rejecting initial value:"
[44] " Log probability evaluates to log(0), i.e. negative infinity."
[45] " Stan can't start sampling from this initial value."
[46] "Rejecting initial value:"
[47] " Log probability evaluates to log(0), i.e. negative infinity."
[48] " Stan can't start sampling from this initial value."
[49] "Rejecting initial value:"
[50] " Log probability evaluates to log(0), i.e. negative infinity."
[51] " Stan can't start sampling from this initial value."
[52] "Rejecting initial value:"
[53] " Log probability evaluates to log(0), i.e. negative infinity."
[54] " Stan can't start sampling from this initial value."
[55] "Rejecting initial value:"
[56] " Log probability evaluates to log(0), i.e. negative infinity."
[57] " Stan can't start sampling from this initial value."
[58] "Rejecting initial value:"
[59] " Log probability evaluates to log(0), i.e. negative infinity."
[60] " Stan can't start sampling from this initial value."
[61] "Rejecting initial value:"
[62] " Log probability evaluates to log(0), i.e. negative infinity."
[63] " Stan can't start sampling from this initial value."
[64] "Rejecting initial value:"
[65] " Log probability evaluates to log(0), i.e. negative infinity."
[66] " Stan can't start sampling from this initial value."
[67] "Rejecting initial value:"
[68] " Log probability evaluates to log(0), i.e. negative infinity."
[69] " Stan can't start sampling from this initial value."
[70] "Rejecting initial value:"
[71] " Log probability evaluates to log(0), i.e. negative infinity."
[72] " Stan can't start sampling from this initial value."
[73] "Rejecting initial value:"
[74] " Log probability evaluates to log(0), i.e. negative infinity."
[75] " Stan can't start sampling from this initial value."
[76] "Rejecting initial value:"
[77] " Log probability evaluates to log(0), i.e. negative infinity."
[78] " Stan can't start sampling from this initial value."
[79] "Rejecting initial value:"
[80] " Log probability evaluates to log(0), i.e. negative infinity."
[81] " Stan can't start sampling from this initial value."
[82] "Rejecting initial value:"
[83] " Log probability evaluates to log(0), i.e. negative infinity."
[84] " Stan can't start sampling from this initial value."
[85] "Rejecting initial value:"
[86] " Log probability evaluates to log(0), i.e. negative infinity."
[87] " Stan can't start sampling from this initial value."
[88] "Rejecting initial value:"
[89] " Log probability evaluates to log(0), i.e. negative infinity."
[90] " Stan can't start sampling from this initial value."
[91] "Rejecting initial value:"
[92] " Log probability evaluates to log(0), i.e. negative infinity."
[93] " Stan can't start sampling from this initial value."
[94] "Rejecting initial value:"
[95] " Log probability evaluates to log(0), i.e. negative infinity."
[96] " Stan can't start sampling from this initial value."
[97] "Rejecting initial value:"
[98] " Log probability evaluates to log(0), i.e. negative infinity."
[99] " Stan can't start sampling from this initial value."
[100] "Rejecting initial value:"
[101] " Log probability evaluates to log(0), i.e. negative infinity."
[102] " Stan can't start sampling from this initial value."
[103] "Rejecting initial value:"
[104] " Log probability evaluates to log(0), i.e. negative infinity."
[105] " Stan can't start sampling from this initial value."
[106] "Rejecting initial value:"
[107] " Log probability evaluates to log(0), i.e. negative infinity."
[108] " Stan can't start sampling from this initial value."
[109] "Rejecting initial value:"
[110] " Log probability evaluates to log(0), i.e. negative infinity."
[111] " Stan can't start sampling from this initial value."
[112] "Rejecting initial value:"
[113] " Log probability evaluates to log(0), i.e. negative infinity."
[114] " Stan can't start sampling from this initial value."
[115] "Rejecting initial value:"
[116] " Log probability evaluates to log(0), i.e. negative infinity."
[117] " Stan can't start sampling from this initial value."
[118] "Rejecting initial value:"
[119] " Log probability evaluates to log(0), i.e. negative infinity."
[120] " Stan can't start sampling from this initial value."
[121] "Rejecting initial value:"
[122] " Log probability evaluates to log(0), i.e. negative infinity."
[123] " Stan can't start sampling from this initial value."
[124] "Rejecting initial value:"
[125] " Log probability evaluates to log(0), i.e. negative infinity."
[126] " Stan can't start sampling from this initial value."
[127] "Rejecting initial value:"
[128] " Log probability evaluates to log(0), i.e. negative infinity."
[129] " Stan can't start sampling from this initial value."
[130] "Rejecting initial value:"
[131] " Log probability evaluates to log(0), i.e. negative infinity."
[132] " Stan can't start sampling from this initial value."
[133] "Rejecting initial value:"
[134] " Log probability evaluates to log(0), i.e. negative infinity."
[135] " Stan can't start sampling from this initial value."
[136] "Rejecting initial value:"
[137] " Log probability evaluates to log(0), i.e. negative infinity."
[138] " Stan can't start sampling from this initial value."
[139] "Rejecting initial value:"
[140] " Log probability evaluates to log(0), i.e. negative infinity."
[141] " Stan can't start sampling from this initial value."
[142] "Rejecting initial value:"
[143] " Log probability evaluates to log(0), i.e. negative infinity."
[144] " Stan can't start sampling from this initial value."
[145] "Rejecting initial value:"
[146] " Log probability evaluates to log(0), i.e. negative infinity."
[147] " Stan can't start sampling from this initial value."
[148] "Rejecting initial value:"
[149] " Log probability evaluates to log(0), i.e. negative infinity."
[150] " Stan can't start sampling from this initial value."
[151] "Rejecting initial value:"
[152] " Log probability evaluates to log(0), i.e. negative infinity."
[153] " Stan can't start sampling from this initial value."
[154] "Rejecting initial value:"
[155] " Log probability evaluates to log(0), i.e. negative infinity."
[156] " Stan can't start sampling from this initial value."
[157] "Rejecting initial value:"
[158] " Log probability evaluates to log(0), i.e. negative infinity."
[159] " Stan can't start sampling from this initial value."
[160] "Rejecting initial value:"
[161] " Log probability evaluates to log(0), i.e. negative infinity."
[162] " Stan can't start sampling from this initial value."
[163] "Rejecting initial value:"
[164] " Log probability evaluates to log(0), i.e. negative infinity."
[165] " Stan can't start sampling from this initial value."
[166] "Rejecting initial value:"
[167] " Log probability evaluates to log(0), i.e. negative infinity."
[168] " Stan can't start sampling from this initial value."
[169] "Rejecting initial value:"
[170] " Log probability evaluates to log(0), i.e. negative infinity."
[171] " Stan can't start sampling from this initial value."
[172] "Rejecting initial value:"
[173] " Log probability evaluates to log(0), i.e. negative infinity."
[174] " Stan can't start sampling from this initial value."
[175] "Rejecting initial value:"
[176] " Log probability evaluates to log(0), i.e. negative infinity."
[177] " Stan can't start sampling from this initial value."
[178] "Rejecting initial value:"
[179] " Log probability evaluates to log(0), i.e. negative infinity."
[180] " Stan can't start sampling from this initial value."
[181] "Rejecting initial value:"
[182] " Log probability evaluates to log(0), i.e. negative infinity."
[183] " Stan can't start sampling from this initial value."
[184] "Rejecting initial value:"
[185] " Log probability evaluates to log(0), i.e. negative infinity."
[186] " Stan can't start sampling from this initial value."
[187] "Rejecting initial value:"
[188] " Log probability evaluates to log(0), i.e. negative infinity."
[189] " Stan can't start sampling from this initial value."
[190] "Rejecting initial value:"
[191] " Log probability evaluates to log(0), i.e. negative infinity."
[192] " Stan can't start sampling from this initial value."
[193] "Rejecting initial value:"
[194] " Log probability evaluates to log(0), i.e. negative infinity."
[195] " Stan can't start sampling from this initial value."
[196] "Rejecting initial value:"
[197] " Log probability evaluates to log(0), i.e. negative infinity."
[198] " Stan can't start sampling from this initial value."
[199] "Rejecting initial value:"
[200] " Log probability evaluates to log(0), i.e. negative infinity."
[201] " Stan can't start sampling from this initial value."
[202] "Rejecting initial value:"
[203] " Log probability evaluates to log(0), i.e. negative infinity."
[204] " Stan can't start sampling from this initial value."
[205] "Rejecting initial value:"
[206] " Log probability evaluates to log(0), i.e. negative infinity."
[207] " Stan can't start sampling from this initial value."
[208] "Rejecting initial value:"
[209] " Log probability evaluates to log(0), i.e. negative infinity."
[210] " Stan can't start sampling from this initial value."
[211] "Rejecting initial value:"
[212] " Log probability evaluates to log(0), i.e. negative infinity."
[213] " Stan can't start sampling from this initial value."
[214] "Rejecting initial value:"
[215] " Log probability evaluates to log(0), i.e. negative infinity."
[216] " Stan can't start sampling from this initial value."
[217] "Rejecting initial value:"
[218] " Log probability evaluates to log(0), i.e. negative infinity."
[219] " Stan can't start sampling from this initial value."
[220] "Rejecting initial value:"
[221] " Log probability evaluates to log(0), i.e. negative infinity."
[222] " Stan can't start sampling from this initial value."
[223] "Rejecting initial value:"
[224] " Log probability evaluates to log(0), i.e. negative infinity."
[225] " Stan can't start sampling from this initial value."
[226] "Rejecting initial value:"
[227] " Log probability evaluates to log(0), i.e. negative infinity."
[228] " Stan can't start sampling from this initial value."
[229] "Rejecting initial value:"
[230] " Log probability evaluates to log(0), i.e. negative infinity."
[231] " Stan can't start sampling from this initial value."
[232] "Rejecting initial value:"
[233] " Log probability evaluates to log(0), i.e. negative infinity."
[234] " Stan can't start sampling from this initial value."
[235] "Rejecting initial value:"
[236] " Log probability evaluates to log(0), i.e. negative infinity."
[237] " Stan can't start sampling from this initial value."
[238] "Rejecting initial value:"
[239] " Log probability evaluates to log(0), i.e. negative infinity."
[240] " Stan can't start sampling from this initial value."
[241] "Rejecting initial value:"
[242] " Log probability evaluates to log(0), i.e. negative infinity."
[243] " Stan can't start sampling from this initial value."
[244] "Rejecting initial value:"
[245] " Log probability evaluates to log(0), i.e. negative infinity."
[246] " Stan can't start sampling from this initial value."
[247] "Rejecting initial value:"
[248] " Log probability evaluates to log(0), i.e. negative infinity."
[249] " Stan can't start sampling from this initial value."
[250] "Rejecting initial value:"
[251] " Log probability evaluates to log(0), i.e. negative infinity."
[252] " Stan can't start sampling from this initial value."
[253] "Rejecting initial value:"
[254] " Log probability evaluates to log(0), i.e. negative infinity."
[255] " Stan can't start sampling from this initial value."
[256] "Rejecting initial value:"
[257] " Log probability evaluates to log(0), i.e. negative infinity."
[258] " Stan can't start sampling from this initial value."
[259] "Rejecting initial value:"
[260] " Log probability evaluates to log(0), i.e. negative infinity."
[261] " Stan can't start sampling from this initial value."
[262] "Rejecting initial value:"
[263] " Log probability evaluates to log(0), i.e. negative infinity."
[264] " Stan can't start sampling from this initial value."
[265] "Rejecting initial value:"
[266] " Log probability evaluates to log(0), i.e. negative infinity."
[267] " Stan can't start sampling from this initial value."
[268] "Rejecting initial value:"
[269] " Log probability evaluates to log(0), i.e. negative infinity."
[270] " Stan can't start sampling from this initial value."
[271] "Rejecting initial value:"
[272] " Log probability evaluates to log(0), i.e. negative infinity."
[273] " Stan can't start sampling from this initial value."
[274] "Rejecting initial value:"
[275] " Log probability evaluates to log(0), i.e. negative infinity."
[276] " Stan can't start sampling from this initial value."
[277] "Rejecting initial value:"
[278] " Log probability evaluates to log(0), i.e. negative infinity."
[279] " Stan can't start sampling from this initial value."
[280] "Rejecting initial value:"
[281] " Log probability evaluates to log(0), i.e. negative infinity."
[282] " Stan can't start sampling from this initial value."
[283] "Rejecting initial value:"
[284] " Log probability evaluates to log(0), i.e. negative infinity."
[285] " Stan can't start sampling from this initial value."
[286] "Rejecting initial value:"
[287] " Log probability evaluates to log(0), i.e. negative infinity."
[288] " Stan can't start sampling from this initial value."
[289] "Rejecting initial value:"
[290] " Log probability evaluates to log(0), i.e. negative infinity."
[291] " Stan can't start sampling from this initial value."
[292] "Rejecting initial value:"
[293] " Log probability evaluates to log(0), i.e. negative infinity."
[294] " Stan can't start sampling from this initial value."
[295] "Rejecting initial value:"
[296] " Log probability evaluates to log(0), i.e. negative infinity."
[297] " Stan can't start sampling from this initial value."
[298] "Rejecting initial value:"
[299] " Log probability evaluates to log(0), i.e. negative infinity."
[300] " Stan can't start sampling from this initial value."
[301] "Initialization between (-2, 2) failed after 100 attempts. "
[302] " Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model."
[303] "Error in sampler$call_sampler(args_list[[i]]) : "
error occurred during calling the sampler; sampling not done
SAMPLING FOR MODEL 'bernoulli' NOW (CHAIN 2).
Chain 2, Iteration: 1 / 2000 [ 0%] (Warmup)
SAMPLING FOR MODEL 'bernoulli' NOW (CHAIN 3).
Chain 3, Iteration: 1 / 2000 [ 0%] (Warmup)
SAMPLING FOR MODEL 'bernoulli' NOW (CHAIN 4).
[1] "Rejecting initial value:"
[2] " Log probability evaluates to log(0), i.e. negative infinity."
[3] " Stan can't start sampling from this initial value."
[4] "Rejecting initial value:"
[5] " Log probability evaluates to log(0), i.e. negative infinity."
[6] " Stan can't start sampling from this initial value."
[7] "Rejecting initial value:"
[8] " Log probability evaluates to log(0), i.e. negative infinity."
[9] " Stan can't start sampling from this initial value."
[10] "Rejecting initial value:"
[11] " Log probability evaluates to log(0), i.e. negative infinity."
[12] " Stan can't start sampling from this initial value."
[13] "Rejecting initial value:"
[14] " Log probability evaluates to log(0), i.e. negative infinity."
[15] " Stan can't start sampling from this initial value."
[16] "Rejecting initial value:"
[17] " Log probability evaluates to log(0), i.e. negative infinity."
[18] " Stan can't start sampling from this initial value."
[19] "Rejecting initial value:"
[20] " Log probability evaluates to log(0), i.e. negative infinity."
[21] " Stan can't start sampling from this initial value."
[22] "Rejecting initial value:"
[23] " Log probability evaluates to log(0), i.e. negative infinity."
[24] " Stan can't start sampling from this initial value."
[25] "Rejecting initial value:"
[26] " Log probability evaluates to log(0), i.e. negative infinity."
[27] " Stan can't start sampling from this initial value."
[28] "Rejecting initial value:"
[29] " Log probability evaluates to log(0), i.e. negative infinity."
[30] " Stan can't start sampling from this initial value."
[31] "Rejecting initial value:"
[32] " Log probability evaluates to log(0), i.e. negative infinity."
[33] " Stan can't start sampling from this initial value."
[34] "Rejecting initial value:"
[35] " Log probability evaluates to log(0), i.e. negative infinity."
[36] " Stan can't start sampling from this initial value."
[37] "Rejecting initial value:"
[38] " Log probability evaluates to log(0), i.e. negative infinity."
[39] " Stan can't start sampling from this initial value."
[40] "Rejecting initial value:"
[41] " Log probability evaluates to log(0), i.e. negative infinity."
[42] " Stan can't start sampling from this initial value."
[43] "Rejecting initial value:"
[44] " Log probability evaluates to log(0), i.e. negative infinity."
[45] " Stan can't start sampling from this initial value."
[46] "Rejecting initial value:"
[47] " Log probability evaluates to log(0), i.e. negative infinity."
[48] " Stan can't start sampling from this initial value."
[49] "Rejecting initial value:"
[50] " Log probability evaluates to log(0), i.e. negative infinity."
[51] " Stan can't start sampling from this initial value."
[52] "Rejecting initial value:"
[53] " Log probability evaluates to log(0), i.e. negative infinity."
[54] " Stan can't start sampling from this initial value."
[55] "Rejecting initial value:"
[56] " Log probability evaluates to log(0), i.e. negative infinity."
[57] " Stan can't start sampling from this initial value."
[58] "Rejecting initial value:"
[59] " Log probability evaluates to log(0), i.e. negative infinity."
[60] " Stan can't start sampling from this initial value."
[61] "Rejecting initial value:"
[62] " Log probability evaluates to log(0), i.e. negative infinity."
[63] " Stan can't start sampling from this initial value."
[64] "Rejecting initial value:"
[65] " Log probability evaluates to log(0), i.e. negative infinity."
[66] " Stan can't start sampling from this initial value."
[67] "Rejecting initial value:"
[68] " Log probability evaluates to log(0), i.e. negative infinity."
[69] " Stan can't start sampling from this initial value."
[70] "Rejecting initial value:"
[71] " Log probability evaluates to log(0), i.e. negative infinity."
[72] " Stan can't start sampling from this initial value."
[73] "Rejecting initial value:"
[74] " Log probability evaluates to log(0), i.e. negative infinity."
[75] " Stan can't start sampling from this initial value."
[76] "Rejecting initial value:"
[77] " Log probability evaluates to log(0), i.e. negative infinity."
[78] " Stan can't start sampling from this initial value."
[79] "Rejecting initial value:"
[80] " Log probability evaluates to log(0), i.e. negative infinity."
[81] " Stan can't start sampling from this initial value."
[82] "Rejecting initial value:"
[83] " Log probability evaluates to log(0), i.e. negative infinity."
[84] " Stan can't start sampling from this initial value."
[85] "Rejecting initial value:"
[86] " Log probability evaluates to log(0), i.e. negative infinity."
[87] " Stan can't start sampling from this initial value."
[88] "Rejecting initial value:"
[89] " Log probability evaluates to log(0), i.e. negative infinity."
[90] " Stan can't start sampling from this initial value."
[91] "Rejecting initial value:"
[92] " Log probability evaluates to log(0), i.e. negative infinity."
[93] " Stan can't start sampling from this initial value."
[94] "Rejecting initial value:"
[95] " Log probability evaluates to log(0), i.e. negative infinity."
[96] " Stan can't start sampling from this initial value."
[97] "Rejecting initial value:"
[98] " Log probability evaluates to log(0), i.e. negative infinity."
[99] " Stan can't start sampling from this initial value."
[100] "Rejecting initial value:"
[101] " Log probability evaluates to log(0), i.e. negative infinity."
[102] " Stan can't start sampling from this initial value."
[103] "Rejecting initial value:"
[104] " Log probability evaluates to log(0), i.e. negative infinity."
[105] " Stan can't start sampling from this initial value."
[106] "Rejecting initial value:"
[107] " Log probability evaluates to log(0), i.e. negative infinity."
[108] " Stan can't start sampling from this initial value."
[109] "Rejecting initial value:"
[110] " Log probability evaluates to log(0), i.e. negative infinity."
[111] " Stan can't start sampling from this initial value."
[112] "Rejecting initial value:"
[113] " Log probability evaluates to log(0), i.e. negative infinity."
[114] " Stan can't start sampling from this initial value."
[115] "Rejecting initial value:"
[116] " Log probability evaluates to log(0), i.e. negative infinity."
[117] " Stan can't start sampling from this initial value."
[118] "Rejecting initial value:"
[119] " Log probability evaluates to log(0), i.e. negative infinity."
[120] " Stan can't start sampling from this initial value."
[121] "Rejecting initial value:"
[122] " Log probability evaluates to log(0), i.e. negative infinity."
[123] " Stan can't start sampling from this initial value."
[124] "Rejecting initial value:"
[125] " Log probability evaluates to log(0), i.e. negative infinity."
[126] " Stan can't start sampling from this initial value."
[127] "Rejecting initial value:"
[128] " Log probability evaluates to log(0), i.e. negative infinity."
[129] " Stan can't start sampling from this initial value."
[130] "Rejecting initial value:"
[131] " Log probability evaluates to log(0), i.e. negative infinity."
[132] " Stan can't start sampling from this initial value."
[133] "Rejecting initial value:"
[134] " Log probability evaluates to log(0), i.e. negative infinity."
[135] " Stan can't start sampling from this initial value."
[136] "Rejecting initial value:"
[137] " Log probability evaluates to log(0), i.e. negative infinity."
[138] " Stan can't start sampling from this initial value."
[139] "Rejecting initial value:"
[140] " Log probability evaluates to log(0), i.e. negative infinity."
[141] " Stan can't start sampling from this initial value."
[142] "Rejecting initial value:"
[143] " Log probability evaluates to log(0), i.e. negative infinity."
[144] " Stan can't start sampling from this initial value."
[145] "Rejecting initial value:"
[146] " Log probability evaluates to log(0), i.e. negative infinity."
[147] " Stan can't start sampling from this initial value."
[148] "Rejecting initial value:"
[149] " Log probability evaluates to log(0), i.e. negative infinity."
[150] " Stan can't start sampling from this initial value."
[151] "Rejecting initial value:"
[152] " Log probability evaluates to log(0), i.e. negative infinity."
[153] " Stan can't start sampling from this initial value."
[154] "Rejecting initial value:"
[155] " Log probability evaluates to log(0), i.e. negative infinity."
[156] " Stan can't start sampling from this initial value."
[157] "Rejecting initial value:"
[158] " Log probability evaluates to log(0), i.e. negative infinity."
[159] " Stan can't start sampling from this initial value."
[160] "Rejecting initial value:"
[161] " Log probability evaluates to log(0), i.e. negative infinity."
[162] " Stan can't start sampling from this initial value."
[163] "Rejecting initial value:"
[164] " Log probability evaluates to log(0), i.e. negative infinity."
[165] " Stan can't start sampling from this initial value."
[166] "Rejecting initial value:"
[167] " Log probability evaluates to log(0), i.e. negative infinity."
[168] " Stan can't start sampling from this initial value."
[169] "Rejecting initial value:"
[170] " Log probability evaluates to log(0), i.e. negative infinity."
[171] " Stan can't start sampling from this initial value."
[172] "Rejecting initial value:"
[173] " Log probability evaluates to log(0), i.e. negative infinity."
[174] " Stan can't start sampling from this initial value."
[175] "Rejecting initial value:"
[176] " Log probability evaluates to log(0), i.e. negative infinity."
[177] " Stan can't start sampling from this initial value."
[178] "Rejecting initial value:"
[179] " Log probability evaluates to log(0), i.e. negative infinity."
[180] " Stan can't start sampling from this initial value."
[181] "Rejecting initial value:"
[182] " Log probability evaluates to log(0), i.e. negative infinity."
[183] " Stan can't start sampling from this initial value."
[184] "Rejecting initial value:"
[185] " Log probability evaluates to log(0), i.e. negative infinity."
[186] " Stan can't start sampling from this initial value."
[187] "Rejecting initial value:"
[188] " Log probability evaluates to log(0), i.e. negative infinity."
[189] " Stan can't start sampling from this initial value."
[190] "Rejecting initial value:"
[191] " Log probability evaluates to log(0), i.e. negative infinity."
[192] " Stan can't start sampling from this initial value."
[193] "Rejecting initial value:"
[194] " Log probability evaluates to log(0), i.e. negative infinity."
[195] " Stan can't start sampling from this initial value."
[196] "Rejecting initial value:"
[197] " Log probability evaluates to log(0), i.e. negative infinity."
[198] " Stan can't start sampling from this initial value."
[199] "Rejecting initial value:"
[200] " Log probability evaluates to log(0), i.e. negative infinity."
[201] " Stan can't start sampling from this initial value."
[202] "Rejecting initial value:"
[203] " Log probability evaluates to log(0), i.e. negative infinity."
[204] " Stan can't start sampling from this initial value."
[205] "Rejecting initial value:"
[206] " Log probability evaluates to log(0), i.e. negative infinity."
[207] " Stan can't start sampling from this initial value."
[208] "Rejecting initial value:"
[209] " Log probability evaluates to log(0), i.e. negative infinity."
[210] " Stan can't start sampling from this initial value."
[211] "Rejecting initial value:"
[212] " Log probability evaluates to log(0), i.e. negative infinity."
[213] " Stan can't start sampling from this initial value."
[214] "Rejecting initial value:"
[215] " Log probability evaluates to log(0), i.e. negative infinity."
[216] " Stan can't start sampling from this initial value."
[217] "Rejecting initial value:"
[218] " Log probability evaluates to log(0), i.e. negative infinity."
[219] " Stan can't start sampling from this initial value."
[220] "Rejecting initial value:"
[221] " Log probability evaluates to log(0), i.e. negative infinity."
[222] " Stan can't start sampling from this initial value."
[223] "Rejecting initial value:"
[224] " Log probability evaluates to log(0), i.e. negative infinity."
[225] " Stan can't start sampling from this initial value."
[226] "Rejecting initial value:"
[227] " Log probability evaluates to log(0), i.e. negative infinity."
[228] " Stan can't start sampling from this initial value."
[229] "Rejecting initial value:"
[230] " Log probability evaluates to log(0), i.e. negative infinity."
[231] " Stan can't start sampling from this initial value."
[232] "Rejecting initial value:"
[233] " Log probability evaluates to log(0), i.e. negative infinity."
[234] " Stan can't start sampling from this initial value."
[235] "Rejecting initial value:"
[236] " Log probability evaluates to log(0), i.e. negative infinity."
[237] " Stan can't start sampling from this initial value."
[238] "Rejecting initial value:"
[239] " Log probability evaluates to log(0), i.e. negative infinity."
[240] " Stan can't start sampling from this initial value."
[241] "Rejecting initial value:"
[242] " Log probability evaluates to log(0), i.e. negative infinity."
[243] " Stan can't start sampling from this initial value."
[244] "Rejecting initial value:"
[245] " Log probability evaluates to log(0), i.e. negative infinity."
[246] " Stan can't start sampling from this initial value."
[247] "Rejecting initial value:"
[248] " Log probability evaluates to log(0), i.e. negative infinity."
[249] " Stan can't start sampling from this initial value."
[250] "Rejecting initial value:"
[251] " Log probability evaluates to log(0), i.e. negative infinity."
[252] " Stan can't start sampling from this initial value."
[253] "Rejecting initial value:"
[254] " Log probability evaluates to log(0), i.e. negative infinity."
[255] " Stan can't start sampling from this initial value."
[256] "Rejecting initial value:"
[257] " Log probability evaluates to log(0), i.e. negative infinity."
[258] " Stan can't start sampling from this initial value."
[259] "Rejecting initial value:"
[260] " Log probability evaluates to log(0), i.e. negative infinity."
[261] " Stan can't start sampling from this initial value."
[262] "Rejecting initial value:"
[263] " Log probability evaluates to log(0), i.e. negative infinity."
[264] " Stan can't start sampling from this initial value."
[265] "Rejecting initial value:"
[266] " Log probability evaluates to log(0), i.e. negative infinity."
[267] " Stan can't start sampling from this initial value."
[268] "Rejecting initial value:"
[269] " Log probability evaluates to log(0), i.e. negative infinity."
[270] " Stan can't start sampling from this initial value."
[271] "Rejecting initial value:"
[272] " Log probability evaluates to log(0), i.e. negative infinity."
[273] " Stan can't start sampling from this initial value."
[274] "Rejecting initial value:"
[275] " Log probability evaluates to log(0), i.e. negative infinity."
[276] " Stan can't start sampling from this initial value."
[277] "Rejecting initial value:"
[278] " Log probability evaluates to log(0), i.e. negative infinity."
[279] " Stan can't start sampling from this initial value."
[280] "Rejecting initial value:"
[281] " Log probability evaluates to log(0), i.e. negative infinity."
[282] " Stan can't start sampling from this initial value."
[283] "Rejecting initial value:"
[284] " Log probability evaluates to log(0), i.e. negative infinity."
[285] " Stan can't start sampling from this initial value."
[286] "Rejecting initial value:"
[287] " Log probability evaluates to log(0), i.e. negative infinity."
[288] " Stan can't start sampling from this initial value."
[289] "Rejecting initial value:"
[290] " Log probability evaluates to log(0), i.e. negative infinity."
[291] " Stan can't start sampling from this initial value."
[292] "Rejecting initial value:"
[293] " Log probability evaluates to log(0), i.e. negative infinity."
[294] " Stan can't start sampling from this initial value."
[295] "Rejecting initial value:"
[296] " Log probability evaluates to log(0), i.e. negative infinity."
[297] " Stan can't start sampling from this initial value."
[298] "Rejecting initial value:"
[299] " Log probability evaluates to log(0), i.e. negative infinity."
[300] " Stan can't start sampling from this initial value."
[301] "Initialization between (-2, 2) failed after 100 attempts. "
[302] " Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model."
[303] "Error in sampler$call_sampler(args_list[[i]]) : "
error occurred during calling the sampler; sampling not done
Chain 2, Iteration: 200 / 2000 [ 10%] (Warmup)
Chain 3, Iteration: 200 / 2000 [ 10%] (Warmup)
Chain 2, Iteration: 400 / 2000 [ 20%] (Warmup)
Chain 3, Iteration: 400 / 2000 [ 20%] (Warmup)
Chain 2, Iteration: 600 / 2000 [ 30%] (Warmup)
Chain 3, Iteration: 600 / 2000 [ 30%] (Warmup)
Chain 2, Iteration: 800 / 2000 [ 40%] (Warmup)
Chain 3, Iteration: 800 / 2000 [ 40%] (Warmup)
Chain 2, Iteration: 1000 / 2000 [ 50%] (Warmup)
Chain 2, Iteration: 1001 / 2000 [ 50%] (Sampling)
Chain 3, Iteration: 1000 / 2000 [ 50%] (Warmup)
Chain 3, Iteration: 1001 / 2000 [ 50%] (Sampling)
Chain 2, Iteration: 1200 / 2000 [ 60%] (Sampling)
Chain 3, Iteration: 1200 / 2000 [ 60%] (Sampling)
Chain 2, Iteration: 1400 / 2000 [ 70%] (Sampling)
Chain 3, Iteration: 1400 / 2000 [ 70%] (Sampling)
Chain 2, Iteration: 1600 / 2000 [ 80%] (Sampling)
Chain 2, Iteration: 1800 / 2000 [ 90%] (Sampling)
Chain 3, Iteration: 1600 / 2000 [ 80%] (Sampling)
Chain 2, Iteration: 2000 / 2000 [100%] (Sampling)
Elapsed Time: 5.94232 seconds (Warm-up)
6.49544 seconds (Sampling)
12.4378 seconds (Total)
Chain 3, Iteration: 1800 / 2000 [ 90%] (Sampling)
Chain 3, Iteration: 2000 / 2000 [100%] (Sampling)
Elapsed Time: 6.39546 seconds (Warm-up)
7.28456 seconds (Sampling)
13.68 seconds (Total)
here are whatever error messages were returned
[[1]]
Stan model 'bernoulli' does not contain samples.
[[2]]
Stan model 'bernoulli' does not contain samples.
Warning message:
In .local(object, ...) :
some chains had errors; consider specifying chains = 1 to debug