Skip to content
Prev 245805 / 398506 Next

T2 hoteling

On 12/27/2010 12:43 AM, leyla khodakarim wrote:
Hi Leyla,
Your attachment didn't make it to the list, but the problem may be that 
which(z==1) reduces the matrix (array? data frame?) X to a vector. One 
other thing that looks funny is the capitalization. In R, X and x are 
different, as are DATA and Data. First thing is to just print out the 
data you are trying to analyze:

DATA[which(z==1)]

and see if it really is an array with at least two dimensions.

Jim