Computes D and S for use within compute_smd.

compute_smd_parts(.x, .g, .w, .na, .ref, applyFUN = n_mean_var)

Arguments

.x

a vector of values

.g

a vector of groupings to compare

.w

a vector of weights (optional)

.na

TRUE/FALSE. NA handling

.ref

integer position of the reference group

applyFUN

the FUN used to compute the SMD parts. Defaults to n_mean_var