Calculate the posterior predictive distributions. Helps to check the fitness of the model. Use it in conjunction with the shinystan app to visualize some nice posterior predictive plots

posterior_predictive(bpc_object, n = 100)

Arguments

bpc_object

a bpc object

n

number of times to sample from the posterior

Value

a list containing two values: y value that represents the collected data and y_pred that represents the predictive posterior matrix

Examples

# \donttest{
m<-bpc(data = tennis_agresti,
player0 = 'player0',
player1 = 'player1',
result_column = 'y',
model_type = 'bt',
solve_ties = 'none')
#> Running MCMC with 4 parallel chains...
#> 
#> Chain 1 finished in 3.3 seconds.
#> Chain 2 finished in 3.3 seconds.
#> Chain 4 finished in 3.2 seconds.
#> Chain 3 finished in 3.3 seconds.
#> 
#> All 4 chains finished successfully.
#> Mean chain execution time: 3.3 seconds.
#> Total execution time: 3.4 seconds.
pp<-posterior_predictive(m)
print(pp$y)
#>  [1] 0 0 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0
#> [39] 0 0 1 1 0 0 0 1
print(pp$y_pred)
#>        y_pred[1] y_pred[2] y_pred[3] y_pred[4] y_pred[5] y_pred[6] y_pred[7]
#>   [1,]         1         1         1         1         0         0         1
#>   [2,]         0         0         0         0         1         0         0
#>   [3,]         1         1         1         1         1         1         0
#>   [4,]         0         1         1         0         1         0         0
#>   [5,]         1         0         1         0         0         0         0
#>   [6,]         1         1         1         1         0         1         0
#>   [7,]         0         1         0         0         0         0         1
#>   [8,]         1         1         1         1         1         1         1
#>   [9,]         0         0         0         1         1         0         0
#>  [10,]         1         1         0         1         1         0         0
#>  [11,]         1         1         1         1         1         0         0
#>  [12,]         0         0         1         0         0         0         0
#>  [13,]         1         1         0         0         1         0         0
#>  [14,]         1         1         1         1         0         0         0
#>  [15,]         0         1         1         1         1         1         0
#>  [16,]         1         1         1         1         1         0         1
#>  [17,]         0         1         1         1         1         0         1
#>  [18,]         1         0         1         0         1         0         0
#>  [19,]         1         1         0         1         1         0         0
#>  [20,]         0         1         1         0         0         0         0
#>  [21,]         0         0         1         1         1         0         1
#>  [22,]         0         0         1         1         1         0         0
#>  [23,]         1         1         1         1         1         0         0
#>  [24,]         1         1         1         1         0         0         0
#>  [25,]         1         1         1         1         1         0         1
#>  [26,]         1         1         0         1         0         1         1
#>  [27,]         0         0         1         0         1         0         0
#>  [28,]         0         1         0         0         1         0         1
#>  [29,]         0         1         0         0         0         0         1
#>  [30,]         1         0         1         0         0         1         0
#>  [31,]         1         1         1         1         1         0         1
#>  [32,]         1         1         1         1         1         0         1
#>  [33,]         1         1         1         1         0         0         1
#>  [34,]         1         1         1         1         1         0         1
#>  [35,]         1         1         1         1         1         0         0
#>  [36,]         1         1         0         1         1         0         0
#>  [37,]         0         0         1         1         1         0         0
#>  [38,]         0         1         0         0         1         0         1
#>  [39,]         1         0         0         0         1         0         0
#>  [40,]         1         1         1         0         1         0         0
#>  [41,]         1         0         0         1         0         0         0
#>  [42,]         0         1         1         0         0         0         1
#>  [43,]         1         1         1         1         0         0         0
#>  [44,]         1         1         0         1         1         1         1
#>  [45,]         0         1         0         1         1         0         0
#>  [46,]         0         0         0         1         0         0         0
#>  [47,]         0         1         0         0         0         0         0
#>  [48,]         1         1         1         1         0         0         0
#>  [49,]         1         0         0         1         0         0         0
#>  [50,]         1         0         1         1         0         1         1
#>  [51,]         0         1         1         1         1         1         0
#>  [52,]         0         0         1         1         0         0         0
#>  [53,]         1         1         1         1         0         1         1
#>  [54,]         1         1         1         0         0         1         0
#>  [55,]         1         1         1         1         1         0         0
#>  [56,]         0         1         0         1         1         0         1
#>  [57,]         0         0         0         0         0         0         1
#>  [58,]         1         1         1         1         1         1         0
#>  [59,]         0         1         1         1         0         0         0
#>  [60,]         0         1         1         1         1         0         1
#>  [61,]         0         1         0         1         1         0         0
#>  [62,]         0         1         1         0         1         0         0
#>  [63,]         1         1         1         1         1         0         0
#>  [64,]         0         1         1         1         1         0         1
#>  [65,]         0         1         1         1         1         0         0
#>  [66,]         1         0         0         0         0         0         0
#>  [67,]         1         1         1         1         1         0         1
#>  [68,]         0         0         0         0         0         0         0
#>  [69,]         1         1         0         0         0         1         1
#>  [70,]         1         1         1         1         1         0         1
#>  [71,]         1         1         1         1         1         1         0
#>  [72,]         1         1         1         1         1         0         0
#>  [73,]         1         1         1         0         0         0         0
#>  [74,]         1         0         0         1         1         0         0
#>  [75,]         0         0         1         1         0         0         0
#>  [76,]         0         0         0         1         0         0         0
#>  [77,]         0         0         1         1         1         0         1
#>  [78,]         1         1         1         1         0         1         0
#>  [79,]         1         1         1         1         1         0         0
#>  [80,]         0         1         1         1         1         1         1
#>  [81,]         1         1         1         1         0         1         0
#>  [82,]         0         1         1         0         1         0         1
#>  [83,]         0         1         1         0         0         1         0
#>  [84,]         1         1         1         0         1         1         0
#>  [85,]         1         1         0         1         0         0         0
#>  [86,]         0         0         0         1         1         0         0
#>  [87,]         1         0         0         1         0         1         1
#>  [88,]         0         1         0         1         1         0         0
#>  [89,]         1         1         1         1         0         0         0
#>  [90,]         1         1         1         0         1         0         1
#>  [91,]         0         1         1         1         1         1         1
#>  [92,]         1         1         0         1         0         0         0
#>  [93,]         1         1         1         1         1         0         0
#>  [94,]         0         1         1         0         1         1         0
#>  [95,]         1         0         0         1         0         0         1
#>  [96,]         1         1         0         1         0         0         0
#>  [97,]         0         0         1         1         1         0         0
#>  [98,]         1         0         1         1         1         0         1
#>  [99,]         0         0         1         1         1         1         0
#> [100,]         1         0         1         1         0         0         0
#>        y_pred[8] y_pred[9] y_pred[10] y_pred[11] y_pred[12] y_pred[13]
#>   [1,]         1         0          0          1          0          0
#>   [2,]         1         1          1          0          0          0
#>   [3,]         1         0          0          0          1          0
#>   [4,]         1         1          0          1          0          0
#>   [5,]         0         0          0          1          1          0
#>   [6,]         0         0          0          1          0          0
#>   [7,]         1         1          1          0          1          1
#>   [8,]         1         1          0          0          0          0
#>   [9,]         1         0          0          0          0          0
#>  [10,]         1         1          0          1          1          0
#>  [11,]         0         0          0          1          1          0
#>  [12,]         1         0          0          0          1          1
#>  [13,]         0         0          0          0          0          0
#>  [14,]         0         0          0          0          1          0
#>  [15,]         1         0          0          1          1          0
#>  [16,]         1         0          0          0          0          0
#>  [17,]         0         0          0          1          1          0
#>  [18,]         1         1          0          1          1          1
#>  [19,]         1         1          0          0          1          0
#>  [20,]         1         0          1          1          0          0
#>  [21,]         0         1          1          1          0          0
#>  [22,]         0         0          0          0          1          0
#>  [23,]         1         0          0          0          1          1
#>  [24,]         1         0          0          1          1          0
#>  [25,]         1         1          1          0          0          1
#>  [26,]         1         1          1          1          1          0
#>  [27,]         1         0          0          0          1          0
#>  [28,]         0         0          1          1          0          0
#>  [29,]         0         0          1          0          1          0
#>  [30,]         0         1          0          0          0          1
#>  [31,]         0         1          1          1          0          1
#>  [32,]         1         1          1          1          1          0
#>  [33,]         1         1          1          0          1          1
#>  [34,]         0         0          0          0          0          1
#>  [35,]         0         1          0          0          0          0
#>  [36,]         1         0          0          1          0          1
#>  [37,]         1         0          1          1          1          0
#>  [38,]         1         0          1          0          0          0
#>  [39,]         0         0          0          0          0          0
#>  [40,]         1         1          0          0          1          0
#>  [41,]         0         0          0          0          0          1
#>  [42,]         0         1          1          0          0          0
#>  [43,]         1         1          0          0          1          1
#>  [44,]         1         0          1          1          1          0
#>  [45,]         0         0          1          1          1          0
#>  [46,]         0         0          0          0          1          0
#>  [47,]         0         0          0          0          0          0
#>  [48,]         1         0          1          0          1          0
#>  [49,]         0         0          1          1          1          1
#>  [50,]         1         1          1          0          0          0
#>  [51,]         0         0          1          1          1          0
#>  [52,]         1         1          0          0          0          1
#>  [53,]         0         0          0          1          1          0
#>  [54,]         0         1          0          0          0          0
#>  [55,]         1         1          1          1          0          0
#>  [56,]         1         0          0          0          0          0
#>  [57,]         0         0          0          0          0          1
#>  [58,]         0         1          0          0          1          1
#>  [59,]         1         1          0          1          0          0
#>  [60,]         1         1          0          0          0          0
#>  [61,]         0         0          0          0          1          0
#>  [62,]         0         0          0          0          0          1
#>  [63,]         1         1          0          1          1          1
#>  [64,]         1         1          0          0          0          0
#>  [65,]         0         0          0          1          0          0
#>  [66,]         0         0          0          0          0          0
#>  [67,]         0         1          0          0          1          0
#>  [68,]         1         0          0          0          1          0
#>  [69,]         0         0          0          1          0          0
#>  [70,]         1         0          0          1          1          0
#>  [71,]         1         1          0          0          1          0
#>  [72,]         1         0          0          1          1          0
#>  [73,]         0         1          1          1          0          0
#>  [74,]         1         0          0          0          0          0
#>  [75,]         1         0          1          1          0          1
#>  [76,]         0         0          1          0          1          0
#>  [77,]         1         1          1          0          1          0
#>  [78,]         0         0          0          1          0          0
#>  [79,]         1         1          1          1          1          0
#>  [80,]         1         1          1          0          1          0
#>  [81,]         0         1          1          1          1          0
#>  [82,]         0         1          1          1          0          0
#>  [83,]         0         0          0          0          0          0
#>  [84,]         1         0          1          1          0          1
#>  [85,]         0         0          0          1          0          0
#>  [86,]         0         1          0          0          0          0
#>  [87,]         0         1          0          0          0          0
#>  [88,]         0         0          1          1          0          0
#>  [89,]         0         0          0          0          0          0
#>  [90,]         1         1          0          0          0          0
#>  [91,]         1         1          1          1          0          0
#>  [92,]         1         0          0          0          0          0
#>  [93,]         0         1          0          0          0          0
#>  [94,]         0         0          1          1          1          0
#>  [95,]         1         1          1          0          0          0
#>  [96,]         1         0          0          0          0          0
#>  [97,]         0         0          1          0          0          0
#>  [98,]         0         0          0          0          0          0
#>  [99,]         1         0          0          1          0          0
#> [100,]         0         0          0          0          1          0
#>        y_pred[14] y_pred[15] y_pred[16] y_pred[17] y_pred[18] y_pred[19]
#>   [1,]          1          0          0          1          0          0
#>   [2,]          0          1          1          0          0          1
#>   [3,]          1          0          0          0          0          0
#>   [4,]          0          1          0          0          0          1
#>   [5,]          0          0          1          0          0          0
#>   [6,]          0          1          0          0          1          0
#>   [7,]          0          0          1          0          0          0
#>   [8,]          0          0          0          0          0          0
#>   [9,]          0          0          0          0          0          1
#>  [10,]          0          0          0          1          0          0
#>  [11,]          0          0          0          0          0          0
#>  [12,]          1          0          0          0          1          1
#>  [13,]          0          1          1          1          0          0
#>  [14,]          0          0          0          1          1          1
#>  [15,]          0          0          1          1          0          1
#>  [16,]          1          0          1          1          0          0
#>  [17,]          0          0          1          0          0          0
#>  [18,]          1          0          1          0          1          0
#>  [19,]          0          0          0          0          0          0
#>  [20,]          0          0          0          0          1          0
#>  [21,]          1          0          0          0          0          0
#>  [22,]          0          0          0          0          0          1
#>  [23,]          0          0          0          0          0          1
#>  [24,]          0          0          0          0          0          0
#>  [25,]          0          0          0          0          0          0
#>  [26,]          0          0          0          1          1          0
#>  [27,]          1          0          0          0          0          0
#>  [28,]          0          0          0          0          0          1
#>  [29,]          0          1          0          0          0          1
#>  [30,]          1          0          0          0          1          0
#>  [31,]          0          1          0          0          1          1
#>  [32,]          1          0          0          0          0          0
#>  [33,]          0          1          0          1          0          0
#>  [34,]          0          0          0          0          1          0
#>  [35,]          0          0          0          0          0          0
#>  [36,]          0          0          0          1          0          0
#>  [37,]          0          1          0          1          0          0
#>  [38,]          0          0          0          1          1          0
#>  [39,]          0          0          0          1          0          1
#>  [40,]          0          0          0          0          0          0
#>  [41,]          0          0          0          1          0          0
#>  [42,]          0          1          0          0          1          0
#>  [43,]          0          0          0          1          0          0
#>  [44,]          0          1          0          1          1          1
#>  [45,]          0          1          0          1          0          0
#>  [46,]          1          0          1          1          1          1
#>  [47,]          0          0          0          0          0          0
#>  [48,]          0          0          0          0          0          0
#>  [49,]          0          0          0          0          0          1
#>  [50,]          1          0          1          0          0          1
#>  [51,]          0          1          1          0          1          0
#>  [52,]          0          1          0          0          0          0
#>  [53,]          0          0          1          0          0          1
#>  [54,]          0          0          0          1          1          1
#>  [55,]          1          0          0          0          0          0
#>  [56,]          0          1          0          0          0          1
#>  [57,]          0          1          1          0          0          0
#>  [58,]          1          0          0          0          0          0
#>  [59,]          0          0          1          0          0          0
#>  [60,]          1          0          0          0          0          0
#>  [61,]          0          0          0          0          0          0
#>  [62,]          0          0          0          0          0          0
#>  [63,]          1          1          0          0          1          0
#>  [64,]          0          1          0          0          0          1
#>  [65,]          0          0          0          1          1          1
#>  [66,]          0          0          0          0          0          0
#>  [67,]          0          1          0          0          0          0
#>  [68,]          0          1          0          0          0          0
#>  [69,]          1          0          0          0          1          0
#>  [70,]          0          0          0          0          0          1
#>  [71,]          0          1          0          0          0          0
#>  [72,]          1          1          0          0          1          0
#>  [73,]          0          0          0          0          0          0
#>  [74,]          0          0          1          1          1          1
#>  [75,]          0          1          0          0          1          0
#>  [76,]          0          0          0          0          0          0
#>  [77,]          1          1          1          1          0          0
#>  [78,]          0          0          0          0          0          1
#>  [79,]          0          0          1          0          0          0
#>  [80,]          0          0          0          0          0          0
#>  [81,]          1          0          0          0          0          0
#>  [82,]          1          0          0          0          1          0
#>  [83,]          0          0          0          0          1          0
#>  [84,]          0          0          0          1          0          0
#>  [85,]          1          0          0          0          0          0
#>  [86,]          0          0          0          0          1          0
#>  [87,]          1          1          0          1          0          0
#>  [88,]          0          1          0          0          0          0
#>  [89,]          0          0          1          1          0          0
#>  [90,]          0          0          0          0          0          0
#>  [91,]          0          0          0          1          0          0
#>  [92,]          0          0          0          0          0          1
#>  [93,]          0          0          0          0          0          0
#>  [94,]          0          1          0          0          0          1
#>  [95,]          0          0          1          0          0          0
#>  [96,]          0          0          0          0          1          0
#>  [97,]          0          1          0          0          1          0
#>  [98,]          0          0          0          0          1          0
#>  [99,]          0          0          0          0          0          0
#> [100,]          0          1          0          0          0          0
#>        y_pred[20] y_pred[21] y_pred[22] y_pred[23] y_pred[24] y_pred[25]
#>   [1,]          0          0          1          0          0          0
#>   [2,]          0          0          0          0          1          1
#>   [3,]          1          0          0          0          0          0
#>   [4,]          0          1          0          0          0          1
#>   [5,]          0          1          1          0          0          1
#>   [6,]          1          0          0          0          0          0
#>   [7,]          0          0          0          0          1          1
#>   [8,]          1          0          0          0          0          0
#>   [9,]          0          0          0          0          1          1
#>  [10,]          0          0          0          0          0          0
#>  [11,]          0          0          0          0          0          0
#>  [12,]          1          0          0          0          0          0
#>  [13,]          1          1          0          0          0          0
#>  [14,]          0          0          0          0          0          1
#>  [15,]          0          1          0          1          0          0
#>  [16,]          0          0          0          0          1          0
#>  [17,]          1          1          0          0          1          0
#>  [18,]          0          1          0          0          0          0
#>  [19,]          0          1          0          0          1          1
#>  [20,]          0          0          1          0          0          1
#>  [21,]          0          0          1          0          0          1
#>  [22,]          1          1          0          1          0          1
#>  [23,]          0          0          0          0          0          0
#>  [24,]          0          0          0          0          0          0
#>  [25,]          0          0          0          0          0          0
#>  [26,]          0          0          1          1          1          0
#>  [27,]          0          1          0          1          0          0
#>  [28,]          1          0          1          0          0          0
#>  [29,]          0          1          0          0          1          1
#>  [30,]          1          0          1          1          0          1
#>  [31,]          1          1          1          0          1          1
#>  [32,]          0          0          0          0          0          0
#>  [33,]          0          0          0          1          1          0
#>  [34,]          0          0          0          0          0          0
#>  [35,]          1          0          0          1          1          0
#>  [36,]          0          0          1          0          0          0
#>  [37,]          1          1          0          1          1          0
#>  [38,]          0          0          0          0          0          0
#>  [39,]          1          0          1          1          0          0
#>  [40,]          0          0          0          0          0          0
#>  [41,]          0          0          0          0          0          0
#>  [42,]          0          0          0          0          1          0
#>  [43,]          0          1          1          0          0          0
#>  [44,]          1          1          1          0          0          0
#>  [45,]          1          0          0          0          0          0
#>  [46,]          1          1          0          1          0          1
#>  [47,]          0          0          0          0          0          0
#>  [48,]          0          1          0          0          1          1
#>  [49,]          0          0          0          0          0          0
#>  [50,]          1          1          0          1          0          1
#>  [51,]          0          0          1          0          0          0
#>  [52,]          1          0          1          0          0          0
#>  [53,]          0          0          0          1          0          1
#>  [54,]          0          0          1          0          0          0
#>  [55,]          0          1          0          1          1          0
#>  [56,]          1          0          0          0          0          0
#>  [57,]          0          0          1          0          0          1
#>  [58,]          0          0          0          0          0          0
#>  [59,]          1          1          0          1          0          0
#>  [60,]          0          0          0          0          1          0
#>  [61,]          0          0          0          0          0          1
#>  [62,]          0          0          0          0          1          0
#>  [63,]          1          0          0          0          0          0
#>  [64,]          0          0          0          1          1          1
#>  [65,]          1          0          0          0          0          0
#>  [66,]          0          0          0          0          0          0
#>  [67,]          0          0          1          0          0          0
#>  [68,]          0          0          0          0          0          1
#>  [69,]          0          0          0          0          1          0
#>  [70,]          0          0          0          0          1          0
#>  [71,]          0          0          0          0          0          0
#>  [72,]          0          1          0          1          0          1
#>  [73,]          0          0          1          0          1          1
#>  [74,]          1          1          1          1          0          0
#>  [75,]          0          0          0          0          0          0
#>  [76,]          0          0          0          1          1          0
#>  [77,]          0          1          0          0          0          0
#>  [78,]          1          0          1          0          0          0
#>  [79,]          0          0          0          0          0          1
#>  [80,]          1          1          0          0          0          1
#>  [81,]          0          0          0          0          0          1
#>  [82,]          1          0          1          1          0          0
#>  [83,]          0          0          0          1          0          0
#>  [84,]          1          0          0          0          1          1
#>  [85,]          0          0          0          0          0          0
#>  [86,]          0          0          0          0          0          1
#>  [87,]          0          0          1          0          0          0
#>  [88,]          0          0          1          0          1          0
#>  [89,]          0          0          1          0          1          0
#>  [90,]          0          0          0          0          0          0
#>  [91,]          0          0          0          1          0          1
#>  [92,]          0          0          0          0          0          0
#>  [93,]          0          0          0          1          1          0
#>  [94,]          0          0          0          0          0          0
#>  [95,]          0          0          0          1          0          0
#>  [96,]          1          0          0          0          1          0
#>  [97,]          0          0          1          0          0          0
#>  [98,]          0          0          1          0          0          0
#>  [99,]          0          0          1          1          0          0
#> [100,]          0          0          0          0          0          0
#>        y_pred[26] y_pred[27] y_pred[28] y_pred[29] y_pred[30] y_pred[31]
#>   [1,]          0          0          0          0          0          0
#>   [2,]          0          0          0          0          0          1
#>   [3,]          1          0          0          0          0          0
#>   [4,]          1          0          0          0          0          1
#>   [5,]          1          0          0          0          0          0
#>   [6,]          0          0          1          0          0          0
#>   [7,]          0          0          0          0          0          1
#>   [8,]          0          0          0          0          1          0
#>   [9,]          0          0          1          0          0          0
#>  [10,]          1          0          0          0          1          0
#>  [11,]          0          0          0          0          1          0
#>  [12,]          1          1          0          0          1          0
#>  [13,]          1          0          0          0          0          1
#>  [14,]          1          1          1          0          0          0
#>  [15,]          1          0          0          0          0          0
#>  [16,]          1          0          0          0          0          0
#>  [17,]          0          0          0          0          0          0
#>  [18,]          0          0          0          0          0          0
#>  [19,]          1          1          0          0          0          0
#>  [20,]          0          0          0          0          0          0
#>  [21,]          1          0          0          0          0          0
#>  [22,]          1          0          0          0          0          0
#>  [23,]          0          0          0          1          0          0
#>  [24,]          0          0          0          0          0          0
#>  [25,]          1          0          0          0          0          0
#>  [26,]          1          0          0          0          0          0
#>  [27,]          0          0          0          0          0          0
#>  [28,]          0          0          0          0          1          0
#>  [29,]          1          0          0          0          0          1
#>  [30,]          1          1          1          0          0          0
#>  [31,]          1          0          0          0          0          0
#>  [32,]          0          0          0          0          0          0
#>  [33,]          0          1          0          1          0          0
#>  [34,]          0          0          0          0          0          0
#>  [35,]          0          0          0          0          0          0
#>  [36,]          0          0          0          0          0          0
#>  [37,]          0          0          1          0          0          1
#>  [38,]          0          0          0          0          0          0
#>  [39,]          0          0          0          0          0          0
#>  [40,]          0          0          0          0          0          0
#>  [41,]          0          0          0          0          1          0
#>  [42,]          0          0          0          0          1          0
#>  [43,]          0          0          0          0          1          0
#>  [44,]          0          0          0          1          0          0
#>  [45,]          0          0          0          0          0          0
#>  [46,]          1          0          1          0          1          0
#>  [47,]          0          0          0          0          0          0
#>  [48,]          1          0          1          0          0          0
#>  [49,]          0          0          0          0          0          0
#>  [50,]          1          0          0          0          0          0
#>  [51,]          0          0          0          0          0          0
#>  [52,]          1          0          0          0          0          0
#>  [53,]          0          0          0          1          1          0
#>  [54,]          0          1          0          0          0          0
#>  [55,]          1          0          0          1          0          1
#>  [56,]          0          0          0          0          0          0
#>  [57,]          1          0          1          0          0          0
#>  [58,]          0          0          0          1          0          0
#>  [59,]          0          0          0          0          0          1
#>  [60,]          1          0          0          0          0          0
#>  [61,]          0          0          0          0          0          0
#>  [62,]          0          1          0          0          0          1
#>  [63,]          0          0          0          0          0          0
#>  [64,]          0          0          0          0          1          0
#>  [65,]          0          0          0          0          0          0
#>  [66,]          1          0          0          0          1          0
#>  [67,]          0          0          0          0          0          0
#>  [68,]          0          0          0          0          0          0
#>  [69,]          0          0          0          0          0          0
#>  [70,]          1          0          0          0          0          0
#>  [71,]          0          0          0          0          1          0
#>  [72,]          0          0          0          0          0          0
#>  [73,]          0          0          0          1          0          0
#>  [74,]          0          0          0          0          0          0
#>  [75,]          1          0          1          0          0          0
#>  [76,]          1          0          0          0          0          0
#>  [77,]          0          0          1          0          0          0
#>  [78,]          0          0          0          0          0          0
#>  [79,]          0          0          0          0          0          0
#>  [80,]          0          0          0          0          1          0
#>  [81,]          1          1          0          0          0          0
#>  [82,]          0          0          0          0          0          0
#>  [83,]          0          0          0          0          0          0
#>  [84,]          0          0          0          0          1          0
#>  [85,]          0          0          0          0          0          1
#>  [86,]          0          0          0          1          1          0
#>  [87,]          0          0          0          0          0          0
#>  [88,]          1          0          0          0          0          0
#>  [89,]          1          0          0          0          0          0
#>  [90,]          0          0          0          0          0          0
#>  [91,]          0          0          0          0          0          0
#>  [92,]          0          0          0          0          0          0
#>  [93,]          0          0          0          1          0          0
#>  [94,]          1          0          0          0          0          0
#>  [95,]          0          0          0          0          0          0
#>  [96,]          1          0          0          1          0          0
#>  [97,]          0          0          0          0          0          0
#>  [98,]          0          0          0          0          0          1
#>  [99,]          0          0          0          0          0          0
#> [100,]          1          1          0          0          0          0
#>        y_pred[32] y_pred[33] y_pred[34] y_pred[35] y_pred[36] y_pred[37]
#>   [1,]          0          0          0          1          0          1
#>   [2,]          0          0          0          1          1          1
#>   [3,]          0          0          0          1          1          0
#>   [4,]          0          0          1          1          0          1
#>   [5,]          0          0          0          1          1          1
#>   [6,]          0          0          0          0          1          0
#>   [7,]          0          0          0          1          0          1
#>   [8,]          1          0          0          0          0          1
#>   [9,]          0          0          0          1          0          0
#>  [10,]          0          0          0          1          1          1
#>  [11,]          0          0          0          1          1          1
#>  [12,]          1          0          0          0          0          0
#>  [13,]          0          0          0          0          1          0
#>  [14,]          0          1          1          1          0          0
#>  [15,]          0          0          1          0          0          1
#>  [16,]          0          0          0          0          0          1
#>  [17,]          0          0          0          1          0          1
#>  [18,]          0          0          0          1          1          1
#>  [19,]          0          0          0          1          0          1
#>  [20,]          0          0          0          0          0          0
#>  [21,]          0          0          0          1          1          1
#>  [22,]          0          0          1          1          0          1
#>  [23,]          0          0          0          1          1          1
#>  [24,]          0          0          0          1          1          0
#>  [25,]          0          1          0          1          0          0
#>  [26,]          0          0          0          1          1          1
#>  [27,]          0          0          0          0          0          0
#>  [28,]          0          0          0          1          1          1
#>  [29,]          0          0          0          1          1          0
#>  [30,]          1          1          0          0          0          0
#>  [31,]          0          0          0          1          0          0
#>  [32,]          0          0          0          1          1          1
#>  [33,]          1          0          1          1          1          0
#>  [34,]          0          0          0          1          0          1
#>  [35,]          0          0          1          0          0          1
#>  [36,]          0          0          0          1          0          0
#>  [37,]          1          0          0          0          1          1
#>  [38,]          0          0          0          1          1          0
#>  [39,]          1          0          0          0          1          0
#>  [40,]          0          0          0          1          1          0
#>  [41,]          0          0          0          0          1          1
#>  [42,]          1          0          0          1          0          1
#>  [43,]          0          0          0          1          1          1
#>  [44,]          0          0          0          0          0          0
#>  [45,]          1          1          0          1          1          1
#>  [46,]          0          0          0          1          1          0
#>  [47,]          0          0          1          0          1          0
#>  [48,]          0          0          0          1          1          1
#>  [49,]          0          0          0          1          1          1
#>  [50,]          0          1          0          0          0          1
#>  [51,]          0          1          0          1          1          0
#>  [52,]          0          0          0          1          1          0
#>  [53,]          0          0          0          0          0          1
#>  [54,]          0          0          0          1          0          0
#>  [55,]          0          1          0          1          0          1
#>  [56,]          0          0          0          0          1          1
#>  [57,]          0          0          0          1          0          0
#>  [58,]          1          0          1          0          1          0
#>  [59,]          0          0          0          1          1          1
#>  [60,]          1          0          0          1          1          0
#>  [61,]          0          0          0          1          1          1
#>  [62,]          1          0          0          1          1          1
#>  [63,]          1          0          0          0          0          0
#>  [64,]          0          0          0          0          0          1
#>  [65,]          1          0          0          1          0          1
#>  [66,]          0          0          0          1          0          1
#>  [67,]          0          0          1          1          0          0
#>  [68,]          0          0          0          1          0          1
#>  [69,]          1          0          0          1          1          1
#>  [70,]          0          0          0          1          1          1
#>  [71,]          0          0          0          1          1          1
#>  [72,]          1          0          0          1          0          1
#>  [73,]          1          0          0          1          1          0
#>  [74,]          0          0          0          0          1          0
#>  [75,]          1          0          0          0          0          1
#>  [76,]          0          0          0          1          0          0
#>  [77,]          0          0          1          0          0          1
#>  [78,]          0          0          0          1          0          0
#>  [79,]          0          1          0          0          0          1
#>  [80,]          0          0          0          1          1          1
#>  [81,]          0          0          1          1          1          1
#>  [82,]          1          0          0          1          1          0
#>  [83,]          0          0          0          1          1          1
#>  [84,]          0          0          0          0          1          1
#>  [85,]          0          0          0          1          1          1
#>  [86,]          0          0          1          1          1          1
#>  [87,]          0          0          0          1          1          1
#>  [88,]          0          0          0          0          1          0
#>  [89,]          0          0          0          0          0          0
#>  [90,]          0          0          0          0          1          1
#>  [91,]          0          0          0          1          0          1
#>  [92,]          0          0          0          1          0          0
#>  [93,]          0          0          0          1          1          1
#>  [94,]          0          0          0          1          0          0
#>  [95,]          0          0          0          1          1          1
#>  [96,]          0          0          1          1          1          1
#>  [97,]          0          0          0          0          0          0
#>  [98,]          0          0          0          1          0          0
#>  [99,]          0          0          0          0          0          0
#> [100,]          0          0          0          1          1          0
#>        y_pred[38] y_pred[39] y_pred[40] y_pred[41] y_pred[42] y_pred[43]
#>   [1,]          0          1          0          1          0          1
#>   [2,]          0          0          0          0          0          1
#>   [3,]          0          0          0          0          0          0
#>   [4,]          1          0          0          1          0          0
#>   [5,]          0          1          1          0          0          0
#>   [6,]          0          1          0          0          0          0
#>   [7,]          1          0          1          0          0          0
#>   [8,]          0          1          1          0          1          0
#>   [9,]          0          0          0          0          1          0
#>  [10,]          0          0          0          0          0          0
#>  [11,]          1          1          0          0          1          0
#>  [12,]          0          0          0          0          1          0
#>  [13,]          1          0          0          1          0          0
#>  [14,]          0          1          1          0          0          0
#>  [15,]          0          0          0          0          0          0
#>  [16,]          0          0          0          1          0          0
#>  [17,]          0          1          0          1          0          0
#>  [18,]          1          1          0          1          0          1
#>  [19,]          0          1          0          0          0          0
#>  [20,]          0          0          0          1          0          0
#>  [21,]          1          1          1          1          0          0
#>  [22,]          0          1          0          0          0          0
#>  [23,]          1          0          0          1          1          0
#>  [24,]          0          0          0          0          0          0
#>  [25,]          0          1          0          1          0          0
#>  [26,]          1          0          0          0          0          0
#>  [27,]          0          0          0          0          1          0
#>  [28,]          1          1          1          0          0          0
#>  [29,]          0          0          0          1          0          0
#>  [30,]          0          0          0          1          0          0
#>  [31,]          0          0          1          0          0          0
#>  [32,]          1          0          1          0          1          0
#>  [33,]          1          0          0          1          0          1
#>  [34,]          0          0          0          1          0          0
#>  [35,]          0          1          0          0          0          0
#>  [36,]          0          0          0          0          0          0
#>  [37,]          0          0          1          0          0          0
#>  [38,]          0          1          1          0          0          0
#>  [39,]          0          0          0          0          1          0
#>  [40,]          1          1          1          1          0          1
#>  [41,]          1          1          1          0          1          1
#>  [42,]          0          0          0          1          0          0
#>  [43,]          0          0          0          1          1          0
#>  [44,]          0          0          0          0          0          0
#>  [45,]          1          0          1          0          0          0
#>  [46,]          0          0          0          1          0          0
#>  [47,]          1          0          0          0          0          1
#>  [48,]          1          1          0          0          0          0
#>  [49,]          0          1          0          0          1          0
#>  [50,]          0          0          1          1          0          0
#>  [51,]          0          0          0          0          0          0
#>  [52,]          0          1          0          0          0          1
#>  [53,]          0          0          0          0          1          1
#>  [54,]          1          0          0          0          0          0
#>  [55,]          1          0          0          0          1          0
#>  [56,]          1          0          0          0          0          0
#>  [57,]          1          0          0          0          0          1
#>  [58,]          1          0          0          0          0          0
#>  [59,]          1          1          0          0          0          1
#>  [60,]          0          0          0          0          0          0
#>  [61,]          1          0          0          0          1          0
#>  [62,]          1          0          1          1          0          0
#>  [63,]          1          0          1          1          1          0
#>  [64,]          0          1          0          0          1          0
#>  [65,]          0          0          0          0          0          1
#>  [66,]          0          0          0          0          0          0
#>  [67,]          1          1          0          0          0          1
#>  [68,]          0          1          1          0          1          1
#>  [69,]          0          0          1          0          1          0
#>  [70,]          1          1          0          1          1          1
#>  [71,]          0          1          1          0          1          0
#>  [72,]          0          0          0          1          0          0
#>  [73,]          0          0          0          0          0          0
#>  [74,]          0          0          0          0          0          1
#>  [75,]          1          0          1          1          0          1
#>  [76,]          0          1          0          1          0          1
#>  [77,]          0          0          0          0          0          0
#>  [78,]          1          0          0          0          0          1
#>  [79,]          1          0          1          1          0          0
#>  [80,]          0          0          1          1          0          0
#>  [81,]          1          1          1          1          1          0
#>  [82,]          0          0          1          0          0          0
#>  [83,]          0          0          0          0          0          1
#>  [84,]          1          0          0          0          0          0
#>  [85,]          0          0          0          1          1          0
#>  [86,]          1          1          0          0          0          1
#>  [87,]          0          1          0          0          1          1
#>  [88,]          1          1          0          1          0          1
#>  [89,]          0          0          0          0          0          0
#>  [90,]          1          0          1          0          0          0
#>  [91,]          0          0          0          0          0          0
#>  [92,]          0          0          0          1          0          0
#>  [93,]          1          1          1          1          0          0
#>  [94,]          0          0          0          0          0          1
#>  [95,]          1          1          0          0          0          0
#>  [96,]          0          0          0          1          1          1
#>  [97,]          0          0          0          1          1          1
#>  [98,]          1          0          0          1          0          1
#>  [99,]          1          0          0          0          0          0
#> [100,]          0          0          0          1          0          1
#>        y_pred[44] y_pred[45] y_pred[46]
#>   [1,]          0          0          0
#>   [2,]          0          0          0
#>   [3,]          0          0          0
#>   [4,]          1          0          0
#>   [5,]          0          0          0
#>   [6,]          1          1          0
#>   [7,]          0          0          1
#>   [8,]          1          0          1
#>   [9,]          0          0          0
#>  [10,]          1          0          0
#>  [11,]          0          0          0
#>  [12,]          0          0          1
#>  [13,]          0          0          0
#>  [14,]          0          1          0
#>  [15,]          0          0          0
#>  [16,]          0          1          0
#>  [17,]          0          0          0
#>  [18,]          0          0          1
#>  [19,]          0          0          0
#>  [20,]          1          0          0
#>  [21,]          0          0          0
#>  [22,]          0          1          0
#>  [23,]          0          0          1
#>  [24,]          1          0          0
#>  [25,]          1          0          0
#>  [26,]          0          0          1
#>  [27,]          1          0          1
#>  [28,]          0          0          0
#>  [29,]          0          0          1
#>  [30,]          0          0          1
#>  [31,]          0          0          0
#>  [32,]          0          0          0
#>  [33,]          1          1          0
#>  [34,]          0          1          0
#>  [35,]          1          1          0
#>  [36,]          0          0          0
#>  [37,]          0          1          0
#>  [38,]          0          0          0
#>  [39,]          0          0          0
#>  [40,]          0          1          0
#>  [41,]          1          0          1
#>  [42,]          0          0          0
#>  [43,]          1          1          0
#>  [44,]          0          1          0
#>  [45,]          0          0          0
#>  [46,]          0          0          1
#>  [47,]          1          0          1
#>  [48,]          0          0          0
#>  [49,]          1          0          0
#>  [50,]          1          0          0
#>  [51,]          0          0          0
#>  [52,]          0          0          0
#>  [53,]          1          0          0
#>  [54,]          0          1          0
#>  [55,]          0          1          1
#>  [56,]          0          0          0
#>  [57,]          0          1          0
#>  [58,]          1          1          0
#>  [59,]          0          0          0
#>  [60,]          0          0          0
#>  [61,]          1          0          0
#>  [62,]          0          1          0
#>  [63,]          0          0          1
#>  [64,]          1          0          0
#>  [65,]          0          0          0
#>  [66,]          0          0          0
#>  [67,]          1          0          0
#>  [68,]          1          1          0
#>  [69,]          0          0          0
#>  [70,]          1          1          0
#>  [71,]          0          0          1
#>  [72,]          1          0          1
#>  [73,]          0          0          0
#>  [74,]          0          0          0
#>  [75,]          0          0          0
#>  [76,]          0          0          1
#>  [77,]          0          0          0
#>  [78,]          1          0          0
#>  [79,]          0          1          0
#>  [80,]          0          0          0
#>  [81,]          1          0          0
#>  [82,]          0          0          0
#>  [83,]          0          0          0
#>  [84,]          0          0          0
#>  [85,]          0          1          1
#>  [86,]          1          0          1
#>  [87,]          0          1          0
#>  [88,]          0          0          0
#>  [89,]          0          0          1
#>  [90,]          0          0          0
#>  [91,]          0          0          0
#>  [92,]          1          1          0
#>  [93,]          1          1          0
#>  [94,]          0          0          1
#>  [95,]          0          0          0
#>  [96,]          0          1          0
#>  [97,]          0          0          0
#>  [98,]          0          0          1
#>  [99,]          0          0          0
#> [100,]          0          0          0
# }