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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: BayesianBoot
> ### Title: Non parametric and Bayesian Bootstrapping for GAMLSS models
> ### Aliases: BayesianBoot NonParametricBoot
> ### Keywords: regression
> 
> ### ** Examples
> 
> m1 <-gamlss(y~x+qrt, data=aids, family=NBI())
GAMLSS-RS iteration 1: Global Deviance = 492.7119 
GAMLSS-RS iteration 2: Global Deviance = 492.6375 
GAMLSS-RS iteration 3: Global Deviance = 492.6373 
> registerDoParallel(cores = 2)
> B1 <- BayesianBoot(m1)
> summary(B1)

 Coefficients from Baysian.boot() taken from: 100 simulations 
                        mean       2.5%        50%      97.5%      mle
mu.(Intercept)      2.884830   2.395116   2.898615   3.435743   2.8855
mu.x                0.087902   0.073839   0.086912   0.101148   0.0874
mu.qrt2            -0.137728  -0.494477  -0.123676   0.220773  -0.1204
mu.qrt3             0.082204  -0.208942   0.080359   0.435602   0.1118
mu.qrt4            -0.088632  -0.432072  -0.073411   0.291483  -0.0755
sigma.(Intercept)  -1.728461  -2.194610  -1.708987  -1.283857  -1.6032
deviance          487.657934 457.478989 490.529454 508.719706 492.6373
> plot(B1)
> B2 <- NonParametricBoot(m1)
1 
2 
GAMLSS-RS iteration 1: Global Deviance = 485.5871 
GAMLSS-RS iteration 2: Global Deviance = 485.4615 
GAMLSS-RS iteration 3: Global Deviance = 485.461 
4 
GAMLSS-RS iteration 1: Global Deviance = 470.7238 
GAMLSS-RS iteration 2: Global Deviance = 470.5424 
GAMLSS-RS iteration 3: Global Deviance = 470.5423 
GAMLSS-RS iteration 1: Global Deviance = 506.5234 
GAMLSS-RS iteration 2: Global Deviance = 506.4568 
GAMLSS-RS iteration 3: Global Deviance = 506.4567 
6 
3 
GAMLSS-RS iteration 1: Global Deviance = 483.4793 
GAMLSS-RS iteration 2: Global Deviance = 483.3839 
GAMLSS-RS iteration 3: Global Deviance = 483.3838 
8 
GAMLSS-RS iteration 1: Global Deviance = 479.1791 
GAMLSS-RS iteration 2: Global Deviance = 478.9403 
GAMLSS-RS iteration 3: Global Deviance = 478.9399 
GAMLSS-RS iteration 1: Global Deviance = 494.9996 
5 
GAMLSS-RS iteration 2: Global Deviance = 494.9096 
GAMLSS-RS iteration 3: Global Deviance = 494.9094 
10 
GAMLSS-RS iteration 1: Global Deviance = 444.5251 
GAMLSS-RS iteration 2: Global Deviance = 444.3264 
GAMLSS-RS iteration 3: Global Deviance = 444.3257 
7 
GAMLSS-RS iteration 1: Global Deviance = 453.7289 
GAMLSS-RS iteration 1: Global Deviance = 455.133 
GAMLSS-RS iteration 2: Global Deviance = 454.9089 
GAMLSS-RS iteration 3: Global Deviance = 454.9085 
9 
GAMLSS-RS iteration 2: Global Deviance = 453.5497 
GAMLSS-RS iteration 3: Global Deviance = 453.5477 
GAMLSS-RS iteration 4: Global Deviance = 453.5471 
12 
GAMLSS-RS iteration 1: Global Deviance = 493.2812 
GAMLSS-RS iteration 2: Global Deviance = 493.1888 
GAMLSS-RS iteration 3: Global Deviance = 493.1886 
11 
GAMLSS-RS iteration 1: Global Deviance = 494.1255 
GAMLSS-RS iteration 1: Global Deviance = 510.745 
GAMLSS-RS iteration 2: Global Deviance = 493.9633 
GAMLSS-RS iteration 2: Global Deviance = 510.6884 
GAMLSS-RS iteration 3: Global Deviance = 493.9631 
13 
GAMLSS-RS iteration 3: Global Deviance = 510.6883 
14 
GAMLSS-RS iteration 1: Global Deviance = 492.3752 
GAMLSS-RS iteration 2: Global Deviance = 492.3116 
GAMLSS-RS iteration 3: Global Deviance = 492.3113 
15 
GAMLSS-RS iteration 1: Global Deviance = 497.2117 
GAMLSS-RS iteration 1: Global Deviance = 508.4002 
GAMLSS-RS iteration 2: Global Deviance = 497.1359 
GAMLSS-RS iteration 2: Global Deviance = 508.3506 
GAMLSS-RS iteration 3: Global Deviance = 497.1358 
16 
GAMLSS-RS iteration 3: Global Deviance = 508.3505 
GAMLSS-RS iteration 1: Global Deviance = 490.5623 
17 
GAMLSS-RS iteration 2: Global Deviance = 490.4888 
GAMLSS-RS iteration 3: Global Deviance = 490.4887 
18 
GAMLSS-RS iteration 1: Global Deviance = 498.4197 
GAMLSS-RS iteration 2: Global Deviance = 498.3608 
GAMLSS-RS iteration 1: Global Deviance = 495.6364 
GAMLSS-RS iteration 3: Global Deviance = 498.3607 
20 
GAMLSS-RS iteration 2: Global Deviance = 495.5011 
GAMLSS-RS iteration 3: Global Deviance = 495.5001 
GAMLSS-RS iteration 4: Global Deviance = 495.4997 
GAMLSS-RS iteration 1: Global Deviance = 507.2045 
GAMLSS-RS iteration 2: Global Deviance = 507.1428 
GAMLSS-RS iteration 3: Global Deviance = 507.1426 
22 
19 
GAMLSS-RS iteration 1: Global Deviance = 473.0909 
GAMLSS-RS iteration 2: Global Deviance = 472.9494 
GAMLSS-RS iteration 3: Global Deviance = 472.9493 
GAMLSS-RS iteration 1: Global Deviance = 482.5839 
24 
GAMLSS-RS iteration 2: Global Deviance = 482.4527 
GAMLSS-RS iteration 3: Global Deviance = 482.4524 
GAMLSS-RS iteration 1: Global Deviance = 504.1645 
21 
GAMLSS-RS iteration 2: Global Deviance = 504.0734 
GAMLSS-RS iteration 3: Global Deviance = 504.0732 
26 
GAMLSS-RS iteration 1: Global Deviance = 466.927 
GAMLSS-RS iteration 2: Global Deviance = 466.7552 
GAMLSS-RS iteration 3: Global Deviance = 466.755 
GAMLSS-RS iteration 1: Global Deviance = 505.944 
28 
GAMLSS-RS iteration 2: Global Deviance = 505.8753 
GAMLSS-RS iteration 3: Global Deviance = 505.8752 
23 
GAMLSS-RS iteration 1: Global Deviance = 480.8503 
GAMLSS-RS iteration 2: Global Deviance = 480.7567 
GAMLSS-RS iteration 3: Global Deviance = 480.7566 
30 
GAMLSS-RS iteration 1: Global Deviance = 508.857 
GAMLSS-RS iteration 2: Global Deviance = 508.737 
GAMLSS-RS iteration 3: Global Deviance = 508.7369 
25 
GAMLSS-RS iteration 1: Global Deviance = 500.9659 
GAMLSS-RS iteration 2: Global Deviance = 500.9254 
GAMLSS-RS iteration 3: Global Deviance = 500.9253 
32 
GAMLSS-RS iteration 1: Global Deviance = 494.2243 
GAMLSS-RS iteration 1: Global Deviance = 491.8399 
GAMLSS-RS iteration 2: Global Deviance = 494.1792 
GAMLSS-RS iteration 3: Global Deviance = 494.1791 
GAMLSS-RS iteration 2: Global Deviance = 491.7438 
GAMLSS-RS iteration 3: Global Deviance = 491.7436 
34 
27 
GAMLSS-RS iteration 1: Global Deviance = 480.4137 
GAMLSS-RS iteration 2: Global Deviance = 480.2757 
GAMLSS-RS iteration 3: Global Deviance = 480.2756 
36 
GAMLSS-RS iteration 1: Global Deviance = 492.9773 
GAMLSS-RS iteration 2: Global Deviance = 492.8807 
GAMLSS-RS iteration 3: Global Deviance = 492.8806 
GAMLSS-RS iteration 1: Global Deviance = 487.3792 
GAMLSS-RS iteration 2: Global Deviance = 487.2466 
GAMLSS-RS iteration 3: Global Deviance = 487.2461 
38 
29 
GAMLSS-RS iteration 1: Global Deviance = 480.5603 
GAMLSS-RS iteration 2: Global Deviance = 480.3774 
GAMLSS-RS iteration 3: Global Deviance = 480.3772 
GAMLSS-RS iteration 1: Global Deviance = 494.252 
40 
GAMLSS-RS iteration 2: Global Deviance = 494.1215 
GAMLSS-RS iteration 3: Global Deviance = 494.1213 
31 
GAMLSS-RS iteration 1: Global Deviance = 519.3897 
GAMLSS-RS iteration 2: Global Deviance = 519.3623 
GAMLSS-RS iteration 3: Global Deviance = 519.3622 
42 
GAMLSS-RS iteration 1: Global Deviance = 508.6353 
GAMLSS-RS iteration 2: Global Deviance = 508.6051 
GAMLSS-RS iteration 3: Global Deviance = 508.605 
33 
GAMLSS-RS iteration 1: Global Deviance = 499.2611 
GAMLSS-RS iteration 2: Global Deviance = 499.2027 
GAMLSS-RS iteration 3: Global Deviance = 499.2027 
44 
GAMLSS-RS iteration 1: Global Deviance = 479.129 
GAMLSS-RS iteration 2: Global Deviance = 478.9767 
GAMLSS-RS iteration 1: Global Deviance = 501.7513 
GAMLSS-RS iteration 3: Global Deviance = 478.9766 
GAMLSS-RS iteration 2: Global Deviance = 501.6678 
35 
GAMLSS-RS iteration 3: Global Deviance = 501.6677 
46 
GAMLSS-RS iteration 1: Global Deviance = 484.0515 
GAMLSS-RS iteration 2: Global Deviance = 483.9522 
GAMLSS-RS iteration 3: Global Deviance = 483.9523 
48 
GAMLSS-RS iteration 1: Global Deviance = 478.0052 
GAMLSS-RS iteration 1: Global Deviance = 487.7204 
GAMLSS-RS iteration 2: Global Deviance = 487.6265 
GAMLSS-RS iteration 3: Global Deviance = 487.6264 
50 
GAMLSS-RS iteration 2: Global Deviance = 477.8434 
GAMLSS-RS iteration 3: Global Deviance = 477.8432 
37 
GAMLSS-RS iteration 1: Global Deviance = 453.143 
GAMLSS-RS iteration 2: Global Deviance = 452.8252 
GAMLSS-RS iteration 3: Global Deviance = 452.8248 
52 
GAMLSS-RS iteration 1: Global Deviance = 472.0671 
GAMLSS-RS iteration 1: Global Deviance = 499.0426 
GAMLSS-RS iteration 2: Global Deviance = 471.8942 
GAMLSS-RS iteration 3: Global Deviance = 471.8939 
GAMLSS-RS iteration 2: Global Deviance = 498.9577 
54 
GAMLSS-RS iteration 3: Global Deviance = 498.9575 
GAMLSS-RS iteration 1: Global Deviance = 477.415 
GAMLSS-RS iteration 2: Global Deviance = 477.2044 
39 
GAMLSS-RS iteration 3: Global Deviance = 477.2042 
56 
GAMLSS-RS iteration 1: Global Deviance = 464.4452 
GAMLSS-RS iteration 2: Global Deviance = 464.1708 
GAMLSS-RS iteration 3: Global Deviance = 464.1705 
58 
GAMLSS-RS iteration 1: Global Deviance = 463.3961 
GAMLSS-RS iteration 2: Global Deviance = 463.1538 
GAMLSS-RS iteration 3: Global Deviance = 463.1536 
GAMLSS-RS iteration 1: Global Deviance = 511.0848 
41 
GAMLSS-RS iteration 2: Global Deviance = 511.0238 
GAMLSS-RS iteration 3: Global Deviance = 511.0235 
60 
GAMLSS-RS iteration 1: Global Deviance = 506.0515 
GAMLSS-RS iteration 2: Global Deviance = 505.9998 
GAMLSS-RS iteration 3: Global Deviance = 505.9997 
62 
GAMLSS-RS iteration 1: Global Deviance = 493.3826 
GAMLSS-RS iteration 2: Global Deviance = 493.251 
GAMLSS-RS iteration 3: Global Deviance = 493.2507 
GAMLSS-RS iteration 1: Global Deviance = 452.4191 
GAMLSS-RS iteration 2: Global Deviance = 452.0591 
GAMLSS-RS iteration 3: Global Deviance = 452.0585 
64 
43 
GAMLSS-RS iteration 1: Global Deviance = 484.8414 
GAMLSS-RS iteration 1: Global Deviance = 463.284 
GAMLSS-RS iteration 2: Global Deviance = 484.6888 
GAMLSS-RS iteration 3: Global Deviance = 484.6887 
66 
GAMLSS-RS iteration 1: Global Deviance = 469.4291 
GAMLSS-RS iteration 2: Global Deviance = 463.0822 
GAMLSS-RS iteration 3: Global Deviance = 463.082 
GAMLSS-RS iteration 2: Global Deviance = 469.2458 
45 
GAMLSS-RS iteration 3: Global Deviance = 469.2459 
68 
GAMLSS-RS iteration 1: Global Deviance = 465.2586 
GAMLSS-RS iteration 2: Global Deviance = 465.0216 
GAMLSS-RS iteration 3: Global Deviance = 465.0213 
70 
GAMLSS-RS iteration 1: Global Deviance = 506.3416 
GAMLSS-RS iteration 2: Global Deviance = 506.2986 
GAMLSS-RS iteration 3: Global Deviance = 506.2985 
GAMLSS-RS iteration 1: Global Deviance = 490.927 
47 
GAMLSS-RS iteration 2: Global Deviance = 490.7898 
GAMLSS-RS iteration 3: Global Deviance = 490.7897 
72 
GAMLSS-RS iteration 1: Global Deviance = 480.6002 
GAMLSS-RS iteration 2: Global Deviance = 480.4857 
GAMLSS-RS iteration 3: Global Deviance = 480.4856 
GAMLSS-RS iteration 1: Global Deviance = 472.5053 
74 
GAMLSS-RS iteration 2: Global Deviance = 472.3175 
GAMLSS-RS iteration 3: Global Deviance = 472.3173 
49 
GAMLSS-RS iteration 1: Global Deviance = 497.8538 
GAMLSS-RS iteration 2: Global Deviance = 497.7621 
GAMLSS-RS iteration 3: Global Deviance = 497.7617 
76 
GAMLSS-RS iteration 1: Global Deviance = 476.3954 
GAMLSS-RS iteration 2: Global Deviance = 476.2879 
GAMLSS-RS iteration 3: Global Deviance = 476.2878 
51 
GAMLSS-RS iteration 1: Global Deviance = 476.7824 
GAMLSS-RS iteration 2: Global Deviance = 476.687 
GAMLSS-RS iteration 3: Global Deviance = 476.6869 
GAMLSS-RS iteration 1: Global Deviance = 487.921 
78 
GAMLSS-RS iteration 2: Global Deviance = 487.7758 
GAMLSS-RS iteration 3: Global Deviance = 487.7756 
53 
GAMLSS-RS iteration 1: Global Deviance = 483.5071 
GAMLSS-RS iteration 1: Global Deviance = 459.4161 
GAMLSS-RS iteration 2: Global Deviance = 483.4174 
GAMLSS-RS iteration 3: Global Deviance = 483.4173 
GAMLSS-RS iteration 2: Global Deviance = 459.1343 
80 
GAMLSS-RS iteration 3: Global Deviance = 459.1339 
55 
GAMLSS-RS iteration 1: Global Deviance = 520.8431 
GAMLSS-RS iteration 2: Global Deviance = 520.8038 
GAMLSS-RS iteration 1: Global Deviance = 514.6184 
GAMLSS-RS iteration 3: Global Deviance = 520.8036 
GAMLSS-RS iteration 2: Global Deviance = 514.5771 
GAMLSS-RS iteration 3: Global Deviance = 514.5769 
57 
82 
GAMLSS-RS iteration 1: Global Deviance = 481.4683 
GAMLSS-RS iteration 2: Global Deviance = 481.1448 
GAMLSS-RS iteration 3: Global Deviance = 481.1419 
GAMLSS-RS iteration GAMLSS-RS iteration 1: Global Deviance = 4473.1405: Global Deviance =  
481.1407 
GAMLSS-RS iteration 5: Global Deviance = 481.1399 
59 
GAMLSS-RS iteration 1: Global Deviance = 481.6222 
GAMLSS-RS iteration 2: Global Deviance = 473.0028 
GAMLSS-RS iteration 2: Global Deviance = 481.5424 
GAMLSS-RS iteration 3: Global Deviance = 473.0026 
GAMLSS-RS iteration 3: Global Deviance = 481.5423 
84 
61 
GAMLSS-RS iteration 1: Global Deviance = 477.5776 
GAMLSS-RS iteration 1: Global Deviance = 473.0201 
GAMLSS-RS iteration 2: Global Deviance = 477.3962 
GAMLSS-RS iteration 3: Global Deviance = 477.396 
86 
GAMLSS-RS iteration 2: Global Deviance = 472.7305 
GAMLSS-RS iteration 3: Global Deviance = 472.7295 
GAMLSS-RS iteration 4: Global Deviance = 472.7293 
63 
GAMLSS-RS iteration 1: Global Deviance = 467.0353 
GAMLSS-RS iteration 2: Global Deviance = 466.8907 
GAMLSS-RS iteration 1: Global Deviance = 488.1321 
GAMLSS-RS iteration 2: Global Deviance = 488.0704 
GAMLSS-RS iteration 3: Global Deviance = 466.8904 
GAMLSS-RS iteration 3: Global Deviance = 488.0703 
65 
88 
GAMLSS-RS iteration 1: Global Deviance = 486.0465 
GAMLSS-RS iteration 1: Global Deviance = 458.6936 
GAMLSS-RS iteration 2: Global Deviance = 485.956 
GAMLSS-RS iteration 2: Global Deviance = 458.5249 
GAMLSS-RS iteration 3: Global Deviance = 485.9558 
GAMLSS-RS iteration 3: Global Deviance = 458.522 
90 
GAMLSS-RS iteration 1: Global Deviance = 492.5213 
GAMLSS-RS iteration 2: Global Deviance = 492.4592 
GAMLSS-RS iteration 4: Global Deviance = 458.5204 
GAMLSS-RS iteration 3: Global Deviance = 492.459 
GAMLSS-RS iteration 5: Global Deviance = 458.5195 
92 
67 
GAMLSS-RS iteration 1: Global Deviance = 467.8674 
GAMLSS-RS iteration 2: Global Deviance = 467.6659 
GAMLSS-RS iteration 3: Global Deviance = 467.6657 
94 
GAMLSS-RS iteration 1: Global Deviance = 474.3105 
GAMLSS-RS iteration 1: Global Deviance = 490.217 
GAMLSS-RS iteration 2: Global Deviance = 474.1848 
GAMLSS-RS iteration 3: Global Deviance = 474.1846 
GAMLSS-RS iteration 2: Global Deviance = 490.1128 
GAMLSS-RS iteration 3: Global Deviance = 490.1126 
69 
96 
GAMLSS-RS iteration 1: Global Deviance = 469.3517 
GAMLSS-RS iteration 2: Global Deviance = 469.2375 
GAMLSS-RS iteration 3: Global Deviance = 469.2375 
98 
GAMLSS-RS iteration 1: Global Deviance = 478.8323 
GAMLSS-RS iteration 2: Global Deviance = 478.6442 
GAMLSS-RS iteration 3: Global Deviance = 478.6439 
GAMLSS-RS iteration 1: Global Deviance = 504.3101 
GAMLSS-RS iteration 2: Global Deviance = 504.2409 
GAMLSS-RS iteration 3: Global Deviance = 504.2407 
100 
71 
GAMLSS-RS iteration 1: Global Deviance = 509.3627 
GAMLSS-RS iteration 2: Global Deviance = 509.3098 
GAMLSS-RS iteration 3: Global Deviance = 509.3096 
GAMLSS-RS iteration 1: Global Deviance = 483.4979 
GAMLSS-RS iteration 2: Global Deviance = 483.345 
GAMLSS-RS iteration 3: Global Deviance = 483.3449 
73 
GAMLSS-RS iteration 1: Global Deviance = 469.0492 
GAMLSS-RS iteration 2: Global Deviance = 468.922 
GAMLSS-RS iteration 3: Global Deviance = 468.9224 
75 
GAMLSS-RS iteration 1: Global Deviance = 481.9693 
GAMLSS-RS iteration 2: Global Deviance = 481.8357 
GAMLSS-RS iteration 3: Global Deviance = 481.8356 
77 
GAMLSS-RS iteration 1: Global Deviance = 482.0351 
GAMLSS-RS iteration 2: Global Deviance = 481.9457 
GAMLSS-RS iteration 3: Global Deviance = 481.9456 
79 
GAMLSS-RS iteration 1: Global Deviance = 486.278 
GAMLSS-RS iteration 2: Global Deviance = 486.1906 
GAMLSS-RS iteration 3: Global Deviance = 486.1904 
81 
GAMLSS-RS iteration 1: Global Deviance = 484.1613 
GAMLSS-RS iteration 2: Global Deviance = 484.0439 
GAMLSS-RS iteration 3: Global Deviance = 484.0437 
83 
GAMLSS-RS iteration 1: Global Deviance = 494.4518 
GAMLSS-RS iteration 2: Global Deviance = 494.3326 
GAMLSS-RS iteration 3: Global Deviance = 494.3325 
85 
GAMLSS-RS iteration 1: Global Deviance = 499.2482 
GAMLSS-RS iteration 2: Global Deviance = 499.1986 
GAMLSS-RS iteration 3: Global Deviance = 499.1984 
87 
GAMLSS-RS iteration 1: Global Deviance = 478.7027 
GAMLSS-RS iteration 2: Global Deviance = 478.583 
GAMLSS-RS iteration 3: Global Deviance = 478.5829 
89 
GAMLSS-RS iteration 1: Global Deviance = 503.9324 
GAMLSS-RS iteration 2: Global Deviance = 503.888 
GAMLSS-RS iteration 3: Global Deviance = 503.888 
91 
GAMLSS-RS iteration 1: Global Deviance = 457.7273 
GAMLSS-RS iteration 2: Global Deviance = 457.4254 
GAMLSS-RS iteration 3: Global Deviance = 457.4249 
93 
GAMLSS-RS iteration 1: Global Deviance = 487.2855 
GAMLSS-RS iteration 2: Global Deviance = 487.1403 
GAMLSS-RS iteration 3: Global Deviance = 487.1401 
95 
GAMLSS-RS iteration 1: Global Deviance = 477.4182 
GAMLSS-RS iteration 2: Global Deviance = 477.295 
GAMLSS-RS iteration 3: Global Deviance = 477.2948 
97 
GAMLSS-RS iteration 1: Global Deviance = 460.9533 
GAMLSS-RS iteration 2: Global Deviance = 460.8234 
GAMLSS-RS iteration 3: Global Deviance = 460.8233 
99 
GAMLSS-RS iteration 1: Global Deviance = 483.5847 
GAMLSS-RS iteration 2: Global Deviance = 483.4972 
GAMLSS-RS iteration 3: Global Deviance = 483.4971 
> stopImplicitCluster()
> summary(B2)

 Coefficients from nonparam.boot() taken from: 100 simulations 
Error in xm[, cs.ind, drop = FALSE] : subscript out of bounds
Calls: summary -> summary.NonParametric.Boot -> printCoefmat
Execution halted