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.878691   2.474483   2.890907   3.336003   2.8855
mu.x                0.087851   0.073082   0.087939   0.102514   0.0874
mu.qrt2            -0.129193  -0.525169  -0.134876   0.172904  -0.1204
mu.qrt3             0.100735  -0.220631   0.076759   0.461607   0.1118
mu.qrt4            -0.083494  -0.460232  -0.078946   0.195825  -0.0755
sigma.(Intercept)  -1.754278  -2.261125  -1.745505  -1.262781  -1.6032
deviance          487.282773 463.033304 487.283309 513.149234 492.6373
> plot(B1)
> B2 <- NonParametricBoot(m1)
2 
1 
GAMLSS-RS iteration 1: Global Deviance = 489.869 
GAMLSS-RS iteration 2: Global Deviance = 489.785 
GAMLSS-RS iteration 3: Global Deviance = 489.7848 
4 
GAMLSS-RS iteration 1: Global Deviance = 487.3516 
GAMLSS-RS iteration 1: Global Deviance = 478.3614 
GAMLSS-RS iteration 2: Global Deviance = 487.239 
GAMLSS-RS iteration GAMLSS-RS iteration 3: Global Deviance = 2487.2389: Global Deviance =  
478.1346 
3 
GAMLSS-RS iteration 3: Global Deviance = 478.1344 
6 
GAMLSS-RS iteration 1: Global Deviance = 475.8872 
GAMLSS-RS iteration 2: Global Deviance = 475.7626 
GAMLSS-RS iteration 1: Global Deviance = 480.2686 
GAMLSS-RS iteration 3: Global Deviance = 475.7624 
GAMLSS-RS iteration 2: Global Deviance = 480.1449 
GAMLSS-RS iteration 3: Global Deviance = 480.1447 
8 
5 
GAMLSS-RS iteration 1: Global Deviance = 493.0927 
GAMLSS-RS iteration 2: Global Deviance = 492.9986 
GAMLSS-RS iteration 1: Global Deviance = 494.2076 
GAMLSS-RS iteration 2: Global Deviance = 494.1467 
GAMLSS-RS iteration 3: Global Deviance = 494.1467 
10 
GAMLSS-RS iteration 3: Global Deviance = 492.9985 
7 
GAMLSS-RS iteration 1: Global Deviance = 468.6014 
GAMLSS-RS iteration 2: Global Deviance = 468.4003 
GAMLSS-RS iteration 3: Global Deviance = 468.4001 
12 
GAMLSS-RS iteration 1: Global Deviance = 484.729 
GAMLSS-RS iteration 1: Global Deviance = 471.6245 
GAMLSS-RS iteration 2: Global Deviance = 471.4549 
GAMLSS-RS iteration 2: Global Deviance = 484.3047 
GAMLSS-RS iteration 3: Global Deviance = 484.3039 
GAMLSS-RS iteration 3: Global Deviance = 471.4543 
9 
14 
GAMLSS-RS iteration 1: Global Deviance = 456.4404 
GAMLSS-RS iteration 1: Global Deviance = 480.9487 
GAMLSS-RS iteration 2: Global Deviance = 456.2748 
GAMLSS-RS iteration 3: Global Deviance = 456.2745 
GAMLSS-RS iteration 2: Global Deviance = 480.8377 
GAMLSS-RS iteration 3: Global Deviance = 480.8377 
16 
11 
GAMLSS-RS iteration 1: Global Deviance = 491.5306 
GAMLSS-RS iteration 1: Global Deviance = 485.6879 
GAMLSS-RS iteration 2: Global Deviance = 485.5883 
GAMLSS-RS iteration 3: Global Deviance = 485.5878 
13 
GAMLSS-RS iteration 2: Global Deviance = 491.3939 
GAMLSS-RS iteration 3: Global Deviance = 491.3938 
18 
GAMLSS-RS iteration 1: Global Deviance = 493.2887 
GAMLSS-RS iteration 1: Global Deviance = 477.9045 
GAMLSS-RS iteration 2: Global Deviance = 493.2283 
GAMLSS-RS iteration 2: Global Deviance = 477.7839 
GAMLSS-RS iteration 3: Global Deviance = 493.2282 
15 
GAMLSS-RS iteration 3: Global Deviance = 477.7837 
20 
GAMLSS-RS iteration 1: Global Deviance = 478.0079 
GAMLSS-RS iteration 1: Global Deviance = 492.0511 
GAMLSS-RS iteration 2: Global Deviance = 477.7906 
GAMLSS-RS iteration 3: Global Deviance = 477.7902 
GAMLSS-RS iteration 2: Global Deviance = 491.8701 
GAMLSS-RS iteration 3: Global Deviance = 491.8699 
2217  

GAMLSS-RS iteration 1: Global Deviance = 483.1071 
GAMLSS-RS iteration 1: Global Deviance = 488.5434 
GAMLSS-RS iteration 2: Global Deviance = 488.4491 
GAMLSS-RS iteration 2: Global Deviance = 483.0467 
GAMLSS-RS iteration 3: Global Deviance = 483.0466 
GAMLSS-RS iteration 3: Global Deviance = 488.4489 
24 
19 
GAMLSS-RS iteration 1: Global Deviance = 488.4863 
GAMLSS-RS iteration 1: Global Deviance = 450.2035 
GAMLSS-RS iteration 2: Global Deviance = 449.9661 
GAMLSS-RS iteration 3: Global Deviance = 449.9659 
GAMLSS-RS iteration 2: Global Deviance = 488.2957 
26 
GAMLSS-RS iteration 3: Global Deviance = 488.2955 
21 
GAMLSS-RS iteration 1: Global Deviance = 475.1373 
GAMLSS-RS iteration 1: Global Deviance = 497.0442 
GAMLSS-RS iteration 2: Global Deviance = 475.0402 
GAMLSS-RS iteration 3: Global Deviance = 475.0401 
GAMLSS-RS iteration 2: Global Deviance = 496.9626 
GAMLSS-RS iteration 3: Global Deviance = 496.9622 
23 
28 
GAMLSS-RS iteration 1: Global Deviance = 490.1368 
GAMLSS-RS iteration 2: Global Deviance = 489.949 
GAMLSS-RS iteration 1: Global Deviance = 482.1806 
GAMLSS-RS iteration 3: Global Deviance = 489.9487 
GAMLSS-RS iteration 2: Global Deviance = 482.0542 
25 
GAMLSS-RS iteration 3: Global Deviance = 482.054 
30 
GAMLSS-RS iteration 1: Global Deviance = 490.215 
GAMLSS-RS iteration 2: Global Deviance = 490.0707 
GAMLSS-RS iteration 3: Global Deviance = 490.0705 
27 
GAMLSS-RS iteration 1: Global Deviance = 474.1212 
GAMLSS-RS iteration 1: Global Deviance = 475.1141 
GAMLSS-RS iteration 2: Global Deviance = 474.9884 
GAMLSS-RS iteration 2: Global Deviance = 473.9039 
GAMLSS-RS iteration 3: Global Deviance = 473.9036 
29 
GAMLSS-RS iteration 3: Global Deviance = 474.9883 
32 
GAMLSS-RS iteration 1: Global Deviance = 476.7182 
GAMLSS-RS iteration 2: Global Deviance = 476.5124 
GAMLSS-RS iteration 3: Global Deviance = 476.5121 
34 
GAMLSS-RS iteration 1: Global Deviance = 485.0769 
GAMLSS-RS iteration 1: Global Deviance = 490.9899 
GAMLSS-RS iteration 2: Global Deviance = 490.9187 
GAMLSS-RS iteration 3: Global Deviance = 490.9186 
36 
GAMLSS-RS iteration 2: Global Deviance = 484.8862 
GAMLSS-RS iteration 3: Global Deviance = 484.886 
GAMLSS-RS iteration 1: Global Deviance = 505.7191 
31 
GAMLSS-RS iteration 2: Global Deviance = 505.6566 
GAMLSS-RS iteration 3: Global Deviance = 505.6566 
38 
GAMLSS-RS iteration 1: Global Deviance = 484.2866 
GAMLSS-RS iteration 2: Global Deviance = 484.1836 
GAMLSS-RS iteration 3: Global Deviance = 484.1832 
40 
GAMLSS-RS iteration 1: Global Deviance = 486.181 
GAMLSS-RS iteration 2: Global Deviance = 486.1216 
GAMLSS-RS iteration 3: Global Deviance = 486.1215 
GAMLSS-RS iteration 1: Global Deviance = 500.7648 
33 
GAMLSS-RS iteration 2: Global Deviance = 500.6761 
GAMLSS-RS iteration 3: Global Deviance = 500.676 
42 
GAMLSS-RS iteration 1: Global Deviance = 500.3716 
GAMLSS-RS iteration 2: Global Deviance = 500.2932 
GAMLSS-RS iteration 3: Global Deviance = 500.2931 
44 
GAMLSS-RS iteration 1: Global Deviance = 466.4022 
GAMLSS-RS iteration 1: Global Deviance = 479.746 
GAMLSS-RS iteration 2: Global Deviance = 466.2009 
GAMLSS-RS iteration 3: Global Deviance = 466.2006 
GAMLSS-RS iteration 2: Global Deviance = 479.6201 
46 
GAMLSS-RS iteration 3: Global Deviance = 479.6199 
GAMLSS-RS iteration 1: Global Deviance = 507.9111 
35 
GAMLSS-RS iteration 2: Global Deviance = 507.8304 
GAMLSS-RS iteration 3: Global Deviance = 507.8303 
48 
GAMLSS-RS iteration 1: Global Deviance = 474.8961 
GAMLSS-RS iteration 1: Global Deviance = 481.5692 
GAMLSS-RS iteration 2: Global Deviance = 481.4713 
GAMLSS-RS iteration 3: Global Deviance = 481.4713 
50 
GAMLSS-RS iteration 2: Global Deviance = 474.7855 
GAMLSS-RS iteration 3: Global Deviance = 474.7853 
37 
GAMLSS-RS iteration 1: Global Deviance = 491.99 
GAMLSS-RS iteration 2: Global Deviance = 491.9176 
GAMLSS-RS iteration 3: Global Deviance = 491.9174 
GAMLSS-RS iteration 1: Global Deviance = 487.4875 
GAMLSS-RS iteration 2: Global Deviance = 487.3812 
GAMLSS-RS iteration 3: Global Deviance = 487.3811 
52 
39 
GAMLSS-RS iteration 1: Global Deviance = 509.4683 
GAMLSS-RS iteration 2: Global Deviance = 509.4262 
GAMLSS-RS iteration 3: Global Deviance = 509.4262 
54 
GAMLSS-RS iteration 1: Global Deviance = 487.8375 
GAMLSS-RS iteration 2: Global Deviance = 487.7422 
GAMLSS-RS iteration 3: Global Deviance = 487.742 
41 
GAMLSS-RS iteration 1: Global Deviance = 455.7581 
GAMLSS-RS iteration 2: Global Deviance = 455.5906 
GAMLSS-RS iteration 3: Global Deviance = 455.5904 
GAMLSS-RS iteration 1: Global Deviance = 465.6552 
56 
GAMLSS-RS iteration 2: Global Deviance = 465.5392 
GAMLSS-RS iteration 3: Global Deviance = 465.5379 
GAMLSS-RS iteration 4: Global Deviance = 465.5375 
GAMLSS-RS iteration 143: Global Deviance =  498.3017
 
GAMLSS-RS iteration 2: Global Deviance = 498.2437 
GAMLSS-RS iteration 3: Global Deviance = 498.2435 
58 
GAMLSS-RS iteration 1: Global Deviance = 483.4681 
GAMLSS-RS iteration 1: Global Deviance = 480.2389 
GAMLSS-RS iteration 2: Global Deviance = 480.0563 
GAMLSS-RS iteration 3: Global Deviance = 480.0561 
GAMLSS-RS iteration 2: Global Deviance = 483.3628 
GAMLSS-RS iteration 3: Global Deviance = 483.3625 
45 
GAMLSS-RS iteration 1: Global Deviance = 470.1189 
GAMLSS-RS iteration 2: Global Deviance = 469.9546 
GAMLSS-RS iteration 3: Global Deviance = 469.9544 
47 
60 
GAMLSS-RS iteration 1: Global Deviance = 480.8866 
GAMLSS-RS iteration 2: Global Deviance = 480.7494 
GAMLSS-RS iteration 3: Global Deviance = 480.7492 
GAMLSS-RS iteration 1: Global Deviance = 471.5794 
GAMLSS-RS iteration 2: Global Deviance = 471.1064 
GAMLSS-RS iteration 3: Global Deviance = 471.1052 
GAMLSS-RS iteration 4: Global Deviance = 471.1052 
49 
62 
GAMLSS-RS iteration 1: Global Deviance = 506.4056 
GAMLSS-RS iteration 1: Global Deviance = 508.3346 
GAMLSS-RS iteration 2: Global Deviance = 508.29 
GAMLSS-RS iteration 3: Global Deviance = 508.2898 
51 
GAMLSS-RS iteration 2: Global Deviance = 506.3506 
GAMLSS-RS iteration 3: Global Deviance = 506.3506 
64 
GAMLSS-RS iteration 1: Global Deviance = 498.8725 
GAMLSS-RS iteration 2: Global Deviance = 498.8037 
GAMLSS-RS iteration 3: Global Deviance = 498.8036 
53 
GAMLSS-RS iteration 1: Global Deviance = 475.7118 
GAMLSS-RS iteration 2: Global Deviance = 475.6261 
GAMLSS-RS iteration 3: Global Deviance = 475.6259 
GAMLSS-RS iteration 1: Global Deviance = 492.6072 
66 
GAMLSS-RS iteration 2: Global Deviance = 492.4842 
GAMLSS-RS iteration 3: Global Deviance = 492.4841 
55 
GAMLSS-RS iteration 1: Global Deviance = 471.8666 
GAMLSS-RS iteration 1: Global Deviance = 506.9474 
GAMLSS-RS iteration 2: Global Deviance = 471.7004 
GAMLSS-RS iteration 3: Global Deviance = 471.7002 
GAMLSS-RS iteration 2: Global Deviance = 506.8787 
GAMLSS-RS iteration 3: Global Deviance = 506.8784 
68 
57 
GAMLSS-RS iteration 1: Global Deviance = 488.5174 
GAMLSS-RS iteration 2: Global Deviance = 488.326 
GAMLSS-RS iteration 3: Global Deviance = 488.325 
GAMLSS-RS iteration 1: Global Deviance = 500.4011 
70 
GAMLSS-RS iteration 2: Global Deviance = 500.3079 
GAMLSS-RS iteration 3: Global Deviance = 500.3077 
59 
GAMLSS-RS iteration 1: Global Deviance = 500.9174 
GAMLSS-RS iteration 2: Global Deviance = 500.8345 
GAMLSS-RS iteration 3: Global Deviance = 500.8346 
72 
GAMLSS-RS iteration 1: Global Deviance = 486.9995 
GAMLSS-RS iteration 2: Global Deviance = 486.8906 
GAMLSS-RS iteration 3: Global Deviance = 486.8905 
61 
GAMLSS-RS iteration 1: Global Deviance = 500.7591 
GAMLSS-RS iteration 1: Global Deviance = 488.6422 
GAMLSS-RS iteration 2: Global Deviance = 488.5507 
GAMLSS-RS iteration 3: Global Deviance = 488.5506 
63 
GAMLSS-RS iteration 2: Global Deviance = 500.6787 
GAMLSS-RS iteration 3: Global Deviance = 500.6786 
74 
GAMLSS-RS iteration 1: Global Deviance = 468.1978 
GAMLSS-RS iteration 2: Global Deviance = 467.884 
GAMLSS-RS iteration 3: Global Deviance = 467.8834 
65 
GAMLSS-RS iteration 1: Global Deviance = 515.1348 
GAMLSS-RS iteration 2: Global Deviance = 515.0918 
GAMLSS-RS iteration 3: Global Deviance = 515.0917 
GAMLSS-RS iteration 1: Global Deviance = 473.7912 
76 
GAMLSS-RS iteration 2: Global Deviance = 473.6591 
GAMLSS-RS iteration 3: Global Deviance = 473.659 
67 
GAMLSS-RS iteration 1: Global Deviance = 493.3796 
GAMLSS-RS iteration 2: Global Deviance = 493.3352 
GAMLSS-RS iteration GAMLSS-RS iteration 3: Global Deviance = 493.335 
78 
GAMLSS-RS iteration 1: Global Deviance = 463.2641 
1: Global Deviance = 479.0912 
GAMLSS-RS iteration 2: Global Deviance = 463.0335 
GAMLSS-RS iteration 3: Global Deviance = 463.0333 
GAMLSS-RS iteration 2: Global Deviance = 479.0024 
80 
GAMLSS-RS iteration 3: Global Deviance = 479.0023 
69 
GAMLSS-RS iteration 1: Global Deviance = 497.2159 
GAMLSS-RS iteration 2: Global Deviance = 497.0879 
GAMLSS-RS iteration 3: Global Deviance = 497.0877 
82 
GAMLSS-RS iteration 1: Global Deviance = 484.6399 
GAMLSS-RS iteration 1: Global Deviance = 521.1443 
GAMLSS-RS iteration 2: Global Deviance = 484.4813 
GAMLSS-RS iteration 2: Global Deviance = 521.1019 
GAMLSS-RS iteration 3: Global Deviance = 484.4813 
GAMLSS-RS iteration 3: Global Deviance = 521.1017 
71 
84 
GAMLSS-RS iteration 1: Global Deviance = 486.1491 
GAMLSS-RS iteration 2: Global Deviance = 486.0934 
GAMLSS-RS iteration 3: Global Deviance = 486.0933 
86 
GAMLSS-RS iteration 1: Global Deviance = 487.6797 
GAMLSS-RS iteration 2: Global Deviance = 487.5845 
GAMLSS-RS iteration 1: Global Deviance = 473.3411 
GAMLSS-RS iteration 3: Global Deviance = 487.5843 
GAMLSS-RS iteration 2: Global Deviance = 473.2261 
GAMLSS-RS iteration 3: Global Deviance = 473.2255 
73 
88 
GAMLSS-RS iteration 1: Global Deviance = 492.2846 
GAMLSS-RS iteration 2: Global Deviance = 492.1287 
GAMLSS-RS iteration 3: Global Deviance = 492.1285 
90 
GAMLSS-RS iteration 1: Global Deviance = 485.6034 
GAMLSS-RS iteration 2: Global Deviance = 485.5127 
GAMLSS-RS iteration 3: Global Deviance = 485.5126 
92 
GAMLSS-RS iteration 1: Global Deviance = 474.4654 
GAMLSS-RS iteration 2: Global Deviance = 474.3015 
GAMLSS-RS iteration 1: Global Deviance = 496.0111 
GAMLSS-RS iteration 3: Global Deviance = 474.3014 
GAMLSS-RS iteration 2: Global Deviance = 495.9044 
94 
GAMLSS-RS iteration 3: Global Deviance = 495.9043 
75 
GAMLSS-RS iteration 1: Global Deviance = 492.6085 
GAMLSS-RS iteration 2: Global Deviance = 492.4553 
GAMLSS-RS iteration 3: Global Deviance = 492.4551 
96 
GAMLSS-RS iteration 1: Global Deviance = 473.6542 
GAMLSS-RS iteration 2: Global Deviance = 473.5055 
GAMLSS-RS iteration 1: Global Deviance = 492.8526 
GAMLSS-RS iteration 3: Global Deviance = 473.5053 
GAMLSS-RS iteration 2: Global Deviance = 492.7863 
98 
GAMLSS-RS iteration 3: Global Deviance = 492.7862 
77 
GAMLSS-RS iteration 1: Global Deviance = 475.4208 
GAMLSS-RS iteration 2: Global Deviance = 475.1052 
GAMLSS-RS iteration 3: Global Deviance = 475.1049 
100 
GAMLSS-RS iteration 1: Global Deviance = 453.9022 
GAMLSS-RS iteration 2: Global Deviance = 453.6369 
GAMLSS-RS iteration 3: Global Deviance = 453.6367 
GAMLSS-RS iteration 1: Global Deviance = 491.9239 
79 
GAMLSS-RS iteration 2: Global Deviance = 491.8493 
GAMLSS-RS iteration 3: Global Deviance = 491.8491 
GAMLSS-RS iteration 1: Global Deviance = 476.5444 
GAMLSS-RS iteration 2: Global Deviance = 476.4498 
GAMLSS-RS iteration 3: Global Deviance = 476.449 
81 
GAMLSS-RS iteration 1: Global Deviance = 496.9799 
GAMLSS-RS iteration 2: Global Deviance = 496.8832 
GAMLSS-RS iteration 3: Global Deviance = 496.8831 
83 
GAMLSS-RS iteration 1: Global Deviance = 477.814 
GAMLSS-RS iteration 2: Global Deviance = 477.6937 
GAMLSS-RS iteration 3: Global Deviance = 477.6936 
85 
GAMLSS-RS iteration 1: Global Deviance = 491.7105 
GAMLSS-RS iteration 2: Global Deviance = 491.6363 
GAMLSS-RS iteration 3: Global Deviance = 491.6362 
87 
GAMLSS-RS iteration 1: Global Deviance = 486.0427 
GAMLSS-RS iteration 2: Global Deviance = 485.9521 
GAMLSS-RS iteration 3: Global Deviance = 485.9519 
89 
GAMLSS-RS iteration 1: Global Deviance = 478.9633 
GAMLSS-RS iteration 2: Global Deviance = 478.8503 
GAMLSS-RS iteration 3: Global Deviance = 478.8503 
91 
GAMLSS-RS iteration 1: Global Deviance = 499.9927 
GAMLSS-RS iteration 2: Global Deviance = 499.8992 
GAMLSS-RS iteration 3: Global Deviance = 499.899 
93 
GAMLSS-RS iteration 1: Global Deviance = 461.5712 
GAMLSS-RS iteration 2: Global Deviance = 461.3954 
GAMLSS-RS iteration 3: Global Deviance = 461.3952 
95 
GAMLSS-RS iteration 1: Global Deviance = 472.1493 
GAMLSS-RS iteration 2: Global Deviance = 472.03 
GAMLSS-RS iteration 3: Global Deviance = 472.0302 
97 
GAMLSS-RS iteration 1: Global Deviance = 510.35 
GAMLSS-RS iteration 2: Global Deviance = 510.3 
GAMLSS-RS iteration 3: Global Deviance = 510.2999 
99 
GAMLSS-RS iteration 1: Global Deviance = 503.7088 
GAMLSS-RS iteration 2: Global Deviance = 503.6018 
GAMLSS-RS iteration 3: Global Deviance = 503.6017 
> 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