Pooled percent relative standard deviation (%RSD) across groups
Source:R/functions-math.R
pooled_rsd.Rdpooled_sd() expressed as a percentage of the grand mean of x, i.e. a
batch-pooled %CV. The pooled SD weights each group by its degrees of freedom
and the grand mean weights each value equally, so both are consistently
weighted by group size. See pooled_sd() for how groups are pooled.
Arguments
- x
a numeric vector
- group
a vector the same length as
xgiving the pooling group of each value (e.g.batch_id)- na.rm
logical, if
TRUEthen NA values inxare stripped before pooling- min_n
integer, the minimum number of non-missing values a group must have to contribute. Groups with fewer than
min_nare dropped; a group is always dropped below two values, which have no within-group variance. The default is2.