Displaying 1 result from an estimated 1 matches for "128x128x1".
Did you mean:
128x128
2009 Nov 09
1
multiple tests: t-statistic for vectors in 4-dimensional array
...created a four dimensional vector (dim (128,128,1,8)). This third
dimension is necessary for another function somewhere. Now I'd like to
perform a t-test on every vector of length 8 in my array on the fourth
dimension.
I'd like to obtain a new array of three dimensions with dimensions
128x128x1 with all these test statistics.
I tried this with a double loop:
A <- array(rep(seq(-1:2),128*128*8),dim=c(128,128,1,8)) #in simulations
I fill the array with random variables
tA <- array(rep(NA,128*128),dim=c(128,128,1))
for (i in 1:128){
for (j in 1:128){
print(c(i,j))
tA[i,j,1] <- t...