averageParallelStats {metapod} | R Documentation |
Average parallel statistics with consideration of weights and protection from missing values.
averageParallelStats(values, weights = NULL)
values |
A list of numeric vectors of the same length, containing statistics from parallel tests. |
weights |
A numeric vector of positive weights, with one value per vector in Alternatively, a list of numeric vectors of weights with the same structure as Alternatively |
If weights
is supplied, a weighted average is computed for each parallel set of tests.
If values
contains missing values, they are ignored and will not contribute to the average.
A numeric vector of (weighted) averages, of length equal to the lengths of the vectors in values
.
Aaron Lun
averageParallelStats
, for the parallel counterpart.
averageParallelStats(list(1:10, 2:11)) averageParallelStats(list(1:10, 2:11), weights=c(2:1)) averageParallelStats(list(1:10, rep(NA, 10)))