Skip to content
Prev 255842 / 398506 Next

Adjusting p values of a matrix

I am afraid I was not clear enough. I am wondering how to best correct
p values that are stored in a matrix, or, in more general: how to
apply a function that takes a vector as an argument to the upper right
(or, equivalently, lower left) half of a matrix, excluding the
diagonal. for... in loop is a trivial, but slow and not elegant
solution.

Naturally, what correction should I use in case of tests which clearly
are not independent is another matter, and I agree on that with you.

Best regards,

January