Running examples in ‘bayesdfa-Ex.R’ failed
The error most likely occurred in:

> ### Name: trend_cor
> ### Title: Estimate the correlation between a DFA trend and some other
> ###   timeseries
> ### Aliases: trend_cor
> 
> ### ** Examples
> 
> set.seed(1)
> s <- sim_dfa(num_trends = 1, num_years = 15)
> m <- fit_dfa(y = s$y_sim, num_trends = 1, iter = 50, chains = 1)

SAMPLING FOR MODEL 'dfa' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 0.000101 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.01 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: WARNING: There aren't enough warmup iterations to fit the
Chain 1:          three stages of adaptation as currently configured.
Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
Chain 1:          the given number of warmup iterations:
Chain 1:            init_buffer = 3
Chain 1:            adapt_window = 20
Chain 1:            term_buffer = 2
Chain 1: 
Chain 1: Iteration:  1 / 50 [  2%]  (Warmup)
Chain 1: Iteration:  5 / 50 [ 10%]  (Warmup)
Chain 1: Iteration: 10 / 50 [ 20%]  (Warmup)
Chain 1: Iteration: 15 / 50 [ 30%]  (Warmup)
Chain 1: Iteration: 20 / 50 [ 40%]  (Warmup)
Chain 1: Iteration: 25 / 50 [ 50%]  (Warmup)
Chain 1: Iteration: 26 / 50 [ 52%]  (Sampling)
Chain 1: Iteration: 30 / 50 [ 60%]  (Sampling)
Chain 1: Iteration: 35 / 50 [ 70%]  (Sampling)
Chain 1: Iteration: 40 / 50 [ 80%]  (Sampling)
Chain 1: Iteration: 45 / 50 [ 90%]  (Sampling)
Chain 1: Iteration: 50 / 50 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.142205 seconds (Warm-up)
Chain 1:                1.09516 seconds (Sampling)
Chain 1:                1.23736 seconds (Total)
Chain 1: 
Warning: The largest R-hat is 1.44, indicating chains have not mixed.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#r-hat
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess
Inference for the input samples (1 chains: each with iter = 25; warmup = 12):

               Q5   Q50   Q95  Mean  SD  Rhat Bulk_ESS Tail_ESS
x[1,1]       -1.9  -0.2   0.5  -0.4 0.9  0.99       13       13
x[1,2]       -2.8  -0.7  -0.3  -1.1 0.9  1.00       10       13
x[1,3]       -3.7  -1.2  -0.5  -1.7 1.2  1.19       11       13
x[1,4]       -3.7  -1.3  -0.4  -1.6 1.3  1.19        9       13
x[1,5]       -2.4  -0.9  -0.2  -1.0 0.8  1.09       10       13
x[1,6]       -1.5  -0.2   0.6  -0.3 0.7  0.92       13       13
x[1,7]       -1.2  -0.2   1.6  -0.1 0.9  1.58       13       13
x[1,8]       -1.8  -0.3   0.1  -0.6 0.7  1.00       13       13
x[1,9]       -1.2  -0.3   0.1  -0.4 0.5  0.92       12       13
x[1,10]       0.0   0.3   1.5   0.5 0.5  1.19        7       13
x[1,11]       0.4   1.4   4.0   1.9 1.4  1.15       10       13
x[1,12]       0.6   1.3   5.3   2.4 1.8  1.00       12       13
x[1,13]       0.5   1.4   4.8   1.9 1.7  1.06       13       13
x[1,14]       0.1   0.3   2.0   0.7 0.7  0.93       13       13
x[1,15]      -0.5  -0.2   1.5   0.1 1.0  1.08        7       13
Z[1,1]        0.2   0.8   2.8   1.1 0.9  1.58       11       13
Z[2,1]       -2.3  -0.7  -0.3  -1.0 0.8  1.71        9       13
Z[3,1]        0.3   0.7   2.8   1.1 0.9  1.30       13       13
Z[4,1]       -0.1   0.3   0.9   0.3 0.4  1.01       13       13
log_lik[1]   -1.0  -0.7  -0.5  -0.7 0.2  0.92       13       13
log_lik[2]   -1.5  -0.8  -0.5  -0.9 0.4  1.00       13       13
log_lik[3]   -1.0  -0.7  -0.5  -0.7 0.2  0.97       13       13
log_lik[4]   -1.2  -1.0  -0.7  -1.0 0.2  1.09       13       13
log_lik[5]   -1.9  -1.3  -0.5  -1.2 0.5  0.93       13       13
log_lik[6]   -1.6  -1.0  -0.6  -1.1 0.3  0.95       13       13
log_lik[7]   -1.3  -0.7  -0.5  -0.8 0.3  0.98       13       13
log_lik[8]   -2.0  -1.4  -0.9  -1.4 0.4  0.94       13       13
log_lik[9]   -1.1  -0.7  -0.5  -0.7 0.2  1.12        8       13
log_lik[10]  -0.8  -0.6  -0.4  -0.6 0.1  1.25        6       13
log_lik[11]  -0.9  -0.6  -0.4  -0.6 0.2  1.05        9       13
log_lik[12]  -1.2  -0.7  -0.5  -0.8 0.2  1.24       13       13
log_lik[13]  -0.9  -0.7  -0.5  -0.7 0.1  1.07        9       13
log_lik[14]  -2.1  -1.7  -1.0  -1.6 0.4  0.96       13       13
log_lik[15]  -0.8  -0.7  -0.4  -0.7 0.1  1.25        6       13
log_lik[16]  -0.9  -0.6  -0.4  -0.6 0.2  1.15        9       13
log_lik[17]  -1.2  -0.8  -0.6  -0.8 0.2  0.97       13       13
log_lik[18]  -1.2  -0.6  -0.5  -0.7 0.3  1.05        9       13
log_lik[19]  -1.5  -0.9  -0.5  -1.0 0.4  0.93       13       13
log_lik[20]  -1.3  -1.0  -0.8  -1.0 0.2  1.09       13       13
log_lik[21]  -0.9  -0.7  -0.5  -0.7 0.2  0.95       13       13
log_lik[22]  -1.4  -0.8  -0.5  -0.8 0.3  0.92       13       13
log_lik[23]  -1.6  -0.8  -0.5  -0.9 0.4  0.98       13       13
log_lik[24]  -0.8  -0.6  -0.4  -0.6 0.1  1.21        6       13
log_lik[25]  -1.5  -0.6  -0.4  -0.7 0.4  2.06        4       13
log_lik[26]  -1.3  -0.6  -0.4  -0.7 0.3  2.06        4       13
log_lik[27]  -1.4  -0.6  -0.5  -0.8 0.3  1.87        4       13
log_lik[28]  -0.9  -0.6  -0.4  -0.6 0.2  1.09        8       13
log_lik[29]  -1.1  -0.7  -0.4  -0.7 0.3  1.14       10       13
log_lik[30]  -1.3  -0.8  -0.7  -0.9 0.2  0.94       13       13
log_lik[31]  -1.2  -0.9  -0.4  -0.8 0.3  1.14       11       13
log_lik[32]  -0.8  -0.6  -0.5  -0.6 0.1  1.06        9       13
log_lik[33]  -1.4  -0.6  -0.5  -0.7 0.4  0.93       13       13
log_lik[34]  -1.5  -1.0  -0.6  -1.0 0.3  0.97       13       13
log_lik[35]  -1.0  -0.6  -0.4  -0.7 0.2  0.94       13       13
log_lik[36]  -1.1  -0.9  -0.7  -0.9 0.1  0.99       13       13
log_lik[37]  -0.8  -0.6  -0.4  -0.6 0.1  1.30        6       13
log_lik[38]  -1.0  -0.6  -0.4  -0.6 0.2  1.21        8       13
log_lik[39]  -1.0  -0.6  -0.4  -0.6 0.2  1.47        5       13
log_lik[40]  -1.1  -0.7  -0.6  -0.8 0.2  1.00       11       13
log_lik[41]  -1.0  -0.6  -0.4  -0.7 0.2  1.05       12       13
log_lik[42]  -2.1  -1.4  -0.7  -1.4 0.5  0.97       13       13
log_lik[43]  -1.8  -0.9  -0.6  -1.1 0.5  0.95       13       13
log_lik[44]  -4.0  -3.3  -1.7  -3.1 0.8  1.19        8       13
log_lik[45]  -1.3  -0.8  -0.5  -0.8 0.3  0.97       12       13
log_lik[46]  -0.8  -0.6  -0.4  -0.6 0.2  1.15        8       13
log_lik[47]  -1.3  -0.9  -0.4  -0.9 0.3  1.01       13       13
log_lik[48]  -8.2  -6.6  -2.8  -6.0 2.0  1.04       13       13
log_lik[49]  -1.2  -0.7  -0.5  -0.8 0.3  1.48        8       13
log_lik[50]  -1.1  -0.6  -0.4  -0.7 0.2  1.22        6       13
log_lik[51]  -1.2  -0.7  -0.5  -0.7 0.3  1.14       13       13
log_lik[52]  -1.4  -0.8  -0.6  -0.9 0.3  1.02       13       13
log_lik[53]  -0.8  -0.7  -0.5  -0.6 0.1  1.11        8       13
log_lik[54]  -0.9  -0.7  -0.4  -0.7 0.2  0.92       13       13
log_lik[55]  -0.9  -0.6  -0.4  -0.6 0.2  0.95       13       13
log_lik[56]  -3.0  -2.6  -1.9  -2.5 0.4  1.24       13       13
log_lik[57]  -1.8  -1.0  -0.8  -1.1 0.4  1.48       13       13
log_lik[58]  -3.8  -1.5  -0.9  -1.9 1.3  1.58       13       13
log_lik[59]  -1.6  -1.0  -0.7  -1.0 0.4  0.96       13       13
log_lik[60]  -2.2  -1.7  -1.4  -1.8 0.3  1.19       10       13
psi[1]        0.0   0.4   5.7   1.5 2.5  1.19        9       13
xstar[1,1]   -1.0   1.6   2.8   1.2 1.5  1.12       13       13
sigma[1]      0.6   0.7   0.8   0.7 0.1  1.27        6       13
lp__        -65.9 -60.8 -55.5 -60.4 3.6  1.09       13       13

For each parameter, Bulk_ESS and Tail_ESS are crude measures of 
effective sample size for bulk and tail quantities respectively (an ESS > 100 
per chain is considered good), and Rhat is the potential scale reduction 
factor on rank normalized split chains (at convergence, Rhat <= 1.05).
> r <- rotate_trends(m)
> n_years <- ncol(r$trends[,1,])
> fake_dat <- rnorm(n_years, 0, 1)
> correlation <- trend_cor(r, fake_dat, trend_samples = 25)

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 1.7e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.17 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.008578 seconds (Warm-up)
Chain 1:                0.007503 seconds (Sampling)
Chain 1:                0.016081 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 2.1e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.21 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.007307 seconds (Warm-up)
Chain 1:                0.006439 seconds (Sampling)
Chain 1:                0.013746 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 2.1e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.21 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.00928 seconds (Warm-up)
Chain 1:                0.005488 seconds (Sampling)
Chain 1:                0.014768 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 1.9e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.19 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.008074 seconds (Warm-up)
Chain 1:                0.005285 seconds (Sampling)
Chain 1:                0.013359 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 1.9e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.19 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.007491 seconds (Warm-up)
Chain 1:                0.004843 seconds (Sampling)
Chain 1:                0.012334 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 1.9e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.19 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.009126 seconds (Warm-up)
Chain 1:                0.006199 seconds (Sampling)
Chain 1:                0.015325 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 2e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.2 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.007771 seconds (Warm-up)
Chain 1:                0.005749 seconds (Sampling)
Chain 1:                0.01352 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 2e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.2 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
Chain 1: Iteration:  30 / 300 [ 10%]  (Warmup)
Chain 1: Iteration:  60 / 300 [ 20%]  (Warmup)
Chain 1: Iteration:  90 / 300 [ 30%]  (Warmup)
Chain 1: Iteration: 120 / 300 [ 40%]  (Warmup)
Chain 1: Iteration: 150 / 300 [ 50%]  (Warmup)
Chain 1: Iteration: 151 / 300 [ 50%]  (Sampling)
Chain 1: Iteration: 180 / 300 [ 60%]  (Sampling)
Chain 1: Iteration: 210 / 300 [ 70%]  (Sampling)
Chain 1: Iteration: 240 / 300 [ 80%]  (Sampling)
Chain 1: Iteration: 270 / 300 [ 90%]  (Sampling)
Chain 1: Iteration: 300 / 300 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.008015 seconds (Warm-up)
Chain 1:                0.005621 seconds (Sampling)
Chain 1:                0.013636 seconds (Total)
Chain 1: 
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
http://mc-stan.org/misc/warnings.html#tail-ess

SAMPLING FOR MODEL 'corr' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 1.8e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.18 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: Iteration:   1 / 300 [  0%]  (Warmup)
[1] "Error in sampler$call_sampler(args_list[[i]]) : "
[2] "  c++ exception (unknown reason)"                
error occurred during calling the sampler; sampling not done
Stan model 'corr' does not contain samples.
Error in vapply(seq_len(length(samples)), FUN = function(i) { : 
  values must be length 150,
 but FUN(X[[9]]) result is length 0
Calls: trend_cor -> vapply
Execution halted