Skip to contents

Mean / median / hard-vote aggregation, with the across-predictor variance (ddof = 1, matching grbag) as the disagreement diagnostic.

Usage

morie_geron_bagging_predictor(predictions, aggregate = "mean")

Arguments

predictions

Matrix (B, m).

aggregate

"mean", "median", "vote".

Value

List with prediction, per_instance_variance, mean_disagreement, n_predictors, se.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_bagging_predictor(V)
#> $prediction
#> [1] 4.5
#> 
#> $per_instance_variance
#> [1] 6
#> 
#> $mean_disagreement
#> [1] 6
#> 
#> $n_predictors
#> [1] 8
#> 
#> $aggregate
#> [1] "mean"
#> 
#> $se
#> [1] 0.8660254
#> 
#> $estimate
#> [1] 4.5
#> 
#> $n
#> [1] 1
#> 
#> $method
#> [1] "Bagging ensemble aggregation"
#>