Mean difference between a distribution and a set of others with or without weights

meandiff_distri(x, n, w, comp.n = TRUE)

Arguments

x

matrix with distribution in rows

n

Number of the column to compare with

w

vector of weights with length = ncol(x)

comp.n

Logical Whether to output x-x[n,] matrix