@@ -737,7 +737,7 @@ <h2><span class="header-section-number">4.4</span> Robust linear
737737seed : int(0) </ code > </ pre >
738738< pre class ="r fold-show "> < code > confint(robustLinearRegression)</ code > </ pre >
739739< pre > < code > 2.5 % 97.5 %
740- (Intercept) 0.83801565 1.0499981
740+ (Intercept) 0.83801566 1.0499981
741741bpi_antisocialT1Sum 0.44749135 0.5352118
742742bpi_anxiousDepressedSum 0.09683728 0.2184779</ code > </ pre >
743743</ div >
@@ -758,19 +758,19 @@ <h2><span class="header-section-number">4.5</span> Least trimmed squares
758758
759759Residuals (from reweighted LS):
760760 Min 1Q Median 3Q Max
761- -3.9225 -0.8914 0.0000 1.0133 3.9185
761+ -3.9305 -0.9091 0.0000 0.9997 3.9036
762762
763763Coefficients:
764764 Estimate Std. Error t value Pr(>|t|)
765- Intercept 0.74662 0.04796 15.568 < 2e-16 ***
766- bpi_antisocialT1Sum 0.54341 0.01525 35.644 < 2e-16 ***
767- bpi_anxiousDepressedSum 0.13275 0.02343 5.665 1.62e-08 ***
765+ Intercept 0.74932 0.04795 15.626 < 2e-16 ***
766+ bpi_antisocialT1Sum 0.54338 0.01524 35.647 < 2e-16 ***
767+ bpi_anxiousDepressedSum 0.13826 0.02343 5.901 4.06e-09 ***
768768---
769769Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
770770
771- Residual standard error: 1.535 on 2710 degrees of freedom
772- Multiple R-Squared: 0.4103 , Adjusted R-squared: 0.4099
773- F-statistic: 942.9 on 2 and 2710 DF, p-value: < 2.2e-16 </ code > </ pre >
771+ Residual standard error: 1.534 on 2710 degrees of freedom
772+ Multiple R-Squared: 0.4121 , Adjusted R-squared: 0.4116
773+ F-statistic: 949.7 on 2 and 2710 DF, p-value: < 2.2e-16 </ code > </ pre >
774774</ div >
775775< div id ="bayesian-linear-regression " class ="section level2 "
776776number ="4.6 ">
@@ -1852,7 +1852,7 @@ <h2><span class="header-section-number">9.4</span> Multiple
18521852summary(imputedData_pooledEstimates)</ code > </ pre >
18531853< div data-pagedtable ="false ">
18541854< script data-pagedtable-source type ="application/json ">
1855- { "columns" :[ { "label" :[ "term" ] , "name" :[ 1 ] , "type" :[ "fct" ] , "align" :[ "left" ] } , { "label" :[ "estimate" ] , "name" :[ 2 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "std.error" ] , "name" :[ 3 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "statistic" ] , "name" :[ 4 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "df" ] , "name" :[ 5 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "p.value" ] , "name" :[ 6 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } ] , "data" :[ { "1" :"(Intercept)" , "2" :"1.1562638 " , "3" :"0.1903264 " , "4" :"6.075162 " , "5" :"4.106220 " , "6" :"0.00340565 " } , { "1" :"bpi_antisocialT1Sum" , "2" :"0.4442931 " , "3" :"0.1094486 " , "4" :"4.059378 " , "5" :"3.847107 " , "6" :"0.01660344 " } , { "1" :"bpi_anxiousDepressedSum" , "2" :"0.1409555 " , "3" :"0.1024097 " , "4" :"1.376388 " , "5" :"4.096855 " , "6" :"0.23914293 " } ] , "options" :{ "columns" :{ "min" :{ } , "max" :[ 10 ] } , "rows" :{ "min" :[ 10 ] , "max" :[ 10 ] } , "pages" :{ } } }
1855+ { "columns" :[ { "label" :[ "term" ] , "name" :[ 1 ] , "type" :[ "fct" ] , "align" :[ "left" ] } , { "label" :[ "estimate" ] , "name" :[ 2 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "std.error" ] , "name" :[ 3 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "statistic" ] , "name" :[ 4 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "df" ] , "name" :[ 5 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "p.value" ] , "name" :[ 6 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } ] , "data" :[ { "1" :"(Intercept)" , "2" :"1.2085944 " , "3" :"0.23985522 " , "4" :"5.038849 " , "5" :"4.019869 " , "6" :"0.007193186 " } , { "1" :"bpi_antisocialT1Sum" , "2" :"0.4103475 " , "3" :"0.06575157 " , "4" :"6.240878 " , "5" :"4.082337 " , "6" :"0.003138072 " } , { "1" :"bpi_anxiousDepressedSum" , "2" :"0.1579709 " , "3" :"0.11964843 " , "4" :"1.320292 " , "5" :"4.027809 " , "6" :"0.256766886 " } ] , "options" :{ "columns" :{ "min" :{ } , "max" :[ 10 ] } , "rows" :{ "min" :[ 10 ] , "max" :[ 10 ] } , "pages" :{ } } }
18561856 </ script >
18571857</ div >
18581858</ div >
@@ -1918,18 +1918,18 @@ <h2><span class="header-section-number">11.1</span> Linear
19181918summary(multipleRegressionModelBootstrapped)</ code > </ pre >
19191919< div data-pagedtable ="false ">
19201920< script data-pagedtable-source type ="application/json ">
1921- { "columns" :[ { "label" :[ "" ] , "name" :[ "_rn_" ] , "type" :[ "" ] , "align" :[ "left" ] } , { "label" :[ "R" ] , "name" :[ 1 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "original" ] , "name" :[ 2 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootBias" ] , "name" :[ 3 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootSE" ] , "name" :[ 4 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootMed" ] , "name" :[ 5 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } ] , "data" :[ { "1" :"1000" , "2" :"1.1983004" , "3" :"-0.0020340517 " , "4" :"0.06289319 " , "5" :"1.1948314 " , "_rn_" :"(Intercept)" } , { "1" :"1000" , "2" :"0.4655286" , "3" :"0.0004412222 " , "4" :"0.02285603 " , "5" :"0.4658318 " , "_rn_" :"bpi_antisocialT1Sum" } , { "1" :"1000" , "2" :"0.1607541" , "3" :"-0.0010514914 " , "4" :"0.03441536 " , "5" :"0.1589603 " , "_rn_" :"bpi_anxiousDepressedSum" } ] , "options" :{ "columns" :{ "min" :{ } , "max" :[ 10 ] } , "rows" :{ "min" :[ 10 ] , "max" :[ 10 ] } , "pages" :{ } } }
1921+ { "columns" :[ { "label" :[ "" ] , "name" :[ "_rn_" ] , "type" :[ "" ] , "align" :[ "left" ] } , { "label" :[ "R" ] , "name" :[ 1 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "original" ] , "name" :[ 2 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootBias" ] , "name" :[ 3 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootSE" ] , "name" :[ 4 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootMed" ] , "name" :[ 5 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } ] , "data" :[ { "1" :"1000" , "2" :"1.1983004" , "3" :"0.0004575619 " , "4" :"0.06363654 " , "5" :"1.1982745 " , "_rn_" :"(Intercept)" } , { "1" :"1000" , "2" :"0.4655286" , "3" :"-0.0006590173 " , "4" :"0.02351387 " , "5" :"0.4648464 " , "_rn_" :"bpi_antisocialT1Sum" } , { "1" :"1000" , "2" :"0.1607541" , "3" :"-0.0002804489 " , "4" :"0.03434810 " , "5" :"0.1610040 " , "_rn_" :"bpi_anxiousDepressedSum" } ] , "options" :{ "columns" :{ "min" :{ } , "max" :[ 10 ] } , "rows" :{ "min" :[ 10 ] , "max" :[ 10 ] } , "pages" :{ } } }
19221922 </ script >
19231923</ div >
19241924< pre class ="r fold-show "> < code > confint(multipleRegressionModelBootstrapped, level = .95, type = "bca")</ code > </ pre >
19251925< pre > < code > Warning in confint.boot(multipleRegressionModelBootstrapped, level = 0.95, :
19261926BCa method fails for this problem. Using 'perc' instead</ code > </ pre >
19271927< pre > < code > Bootstrap percent confidence intervals
19281928
1929- 2.5 % 97.5 %
1930- (Intercept) 1.07349576 1.3257446
1931- bpi_antisocialT1Sum 0.42064620 0.5100082
1932- bpi_anxiousDepressedSum 0.09548154 0.2289897 </ code > </ pre >
1929+ 2.5 % 97.5 %
1930+ (Intercept) 1.0699677 1.3253791
1931+ bpi_antisocialT1Sum 0.4167496 0.5120914
1932+ bpi_anxiousDepressedSum 0.0918046 0.2305352 </ code > </ pre >
19331933< pre class ="r fold-show "> < code > hist(multipleRegressionModelBootstrapped)</ code > </ pre >
19341934< pre > < code > Warning in confint.boot(x, type = ci, level = level): BCa method fails for this
19351935problem. Using 'perc' instead</ code > </ pre >
@@ -1942,7 +1942,7 @@ <h2><span class="header-section-number">11.2</span> Generalized
19421942summary(generalizedRegressionModelBootstrapped)</ code > </ pre >
19431943< div data-pagedtable ="false ">
19441944< script data-pagedtable-source type ="application/json ">
1945- { "columns" :[ { "label" :[ "" ] , "name" :[ "_rn_" ] , "type" :[ "" ] , "align" :[ "left" ] } , { "label" :[ "R" ] , "name" :[ 1 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "original" ] , "name" :[ 2 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootBias" ] , "name" :[ 3 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootSE" ] , "name" :[ 4 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootMed" ] , "name" :[ 5 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } ] , "data" :[ { "1" :"1000" , "2" :"1.1983004" , "3" :"-0.0013101413 " , "4" :"0.06184059 " , "5" :"1.1952085 " , "_rn_" :"(Intercept)" } , { "1" :"1000" , "2" :"0.4655286" , "3" :"-0.0002620437 " , "4" :"0.02279037 " , "5" :"0.4653162 " , "_rn_" :"bpi_antisocialT1Sum" } , { "1" :"1000" , "2" :"0.1607541" , "3" :"0.0007505728 " , "4" :"0.03302004 " , "5" :"0.1615621 " , "_rn_" :"bpi_anxiousDepressedSum" } ] , "options" :{ "columns" :{ "min" :{ } , "max" :[ 10 ] } , "rows" :{ "min" :[ 10 ] , "max" :[ 10 ] } , "pages" :{ } } }
1945+ { "columns" :[ { "label" :[ "" ] , "name" :[ "_rn_" ] , "type" :[ "" ] , "align" :[ "left" ] } , { "label" :[ "R" ] , "name" :[ 1 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "original" ] , "name" :[ 2 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootBias" ] , "name" :[ 3 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootSE" ] , "name" :[ 4 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } , { "label" :[ "bootMed" ] , "name" :[ 5 ] , "type" :[ "dbl" ] , "align" :[ "right" ] } ] , "data" :[ { "1" :"1000" , "2" :"1.1983004" , "3" :"-7.667005e-05 " , "4" :"0.06222045 " , "5" :"1.1986654 " , "_rn_" :"(Intercept)" } , { "1" :"1000" , "2" :"0.4655286" , "3" :"4.961828e-04 " , "4" :"0.02301143 " , "5" :"0.4663421 " , "_rn_" :"bpi_antisocialT1Sum" } , { "1" :"1000" , "2" :"0.1607541" , "3" :"-1.325790e-03 " , "4" :"0.03235557 " , "5" :"0.1599957 " , "_rn_" :"bpi_anxiousDepressedSum" } ] , "options" :{ "columns" :{ "min" :{ } , "max" :[ 10 ] } , "rows" :{ "min" :[ 10 ] , "max" :[ 10 ] } , "pages" :{ } } }
19461946 </ script >
19471947</ div >
19481948< pre class ="r fold-show "> < code > confint(generalizedRegressionModelBootstrapped, level = .95, type = "bca")</ code > </ pre >
@@ -1951,9 +1951,9 @@ <h2><span class="header-section-number">11.2</span> Generalized
19511951< pre > < code > Bootstrap percent confidence intervals
19521952
19531953 2.5 % 97.5 %
1954- (Intercept) 1.07498282 1.3214226
1955- bpi_antisocialT1Sum 0.41859059 0.5075609
1956- bpi_anxiousDepressedSum 0.09722923 0.2213951 </ code > </ pre >
1954+ (Intercept) 1.07299901 1.3194043
1955+ bpi_antisocialT1Sum 0.41889417 0.5117848
1956+ bpi_anxiousDepressedSum 0.09540227 0.2229572 </ code > </ pre >
19571957< pre class ="r fold-show "> < code > hist(generalizedRegressionModelBootstrapped)</ code > </ pre >
19581958< pre > < code > Warning in confint.boot(x, type = ci, level = level): BCa method fails for this
19591959problem. Using 'perc' instead</ code > </ pre >
@@ -2015,9 +2015,9 @@ <h2><span class="header-section-number">12.1</span> K-fold cross
20152015< pre > < code >
2016201610-fold CV results:
20172017 Fit CV
2018- 1 OLS 1.980613
2019- 2 MM 1.026745
2020- 3 LTS 1.007103
2018+ 1 OLS 1.980924
2019+ 2 MM 1.026443
2020+ 3 LTS 1.007390
20212021
20222022Best model:
20232023 CV
@@ -3152,7 +3152,7 @@ <h6><span class="header-section-number">14.1.6.2.3.1</span> Robust
31523152bpi_antisocialT2Sum 1.493955 3.122528
31533153
31543154$msg
3155- [1] "155 singular samples of size 3 out of 1500"
3155+ [1] "149 singular samples of size 3 out of 1500"
31563156
31573157$crit
31583158[1] 3.737972
@@ -3289,10 +3289,10 @@ <h6><span class="header-section-number">14.1.6.2.3.1</span> Robust
32893289bpi_antisocialT2Sum 1.096437 2.482409
32903290
32913291$msg
3292- [1] "149 singular samples of size 3 out of 1500"
3292+ [1] "126 singular samples of size 3 out of 1500"
32933293
32943294$crit
3295- [1] -0.3839279
3295+ [1] -0.3817849
32963296
32973297$best
32983298 [1] 1 3 8 9 10 12 13 14 15 16 17 18 19 21
0 commit comments