Re: [R] Applying a function to an array

2007-08-24 Thread Tsjerk Wassenaar
Hi, Alternatively: apply( a, c(1,2), sd ) Cheers, Tsjerk On 8/24/07, Florent Bresson [EMAIL PROTECTED] wrote: Dear R-users, I would like to apply a function (more precisely sd()) over the third dimension of a three-dimension array. The function apply would be interesting but the chosen

[R] canonical correlations on multiple sets

2005-08-01 Thread Tsjerk Wassenaar
Hi! I was wondering whether anybody could help me with canonical correlation on multiple sets (3 or 4) of variates, e.g. using one of the methods suggested by Kettenring (Biometrika 58(3):433, 1971), starting from covariance or correlation matrices. If someone could point me to an efficient way