powered by
Computes the vector of differences between the sample mean at the reference index and the remaining dimensions.
get.sample.mean.r(sample.mean, r)
A vector of length p - 1 giving the differences: sample.mean[r] - sample.mean[-r].
p - 1
A vector of length p containing the sample means of each dimension.
p
An integer between 1 and p, indicating the reference dimension.
sample.mean <- 1:5 get.sample.mean.r(sample.mean, r = 3)
Run the code above in your browser using DataLab