I have a large set of data from an experiment in which each individual has trials 1-40 with approx. 150 points sampled every 0.1 sec within each trial. Each trial is a column and the rows are organized by time.  I know there is a code to take out single outliers within a certain trial by using the chi square test code. But, I want to be able to determine if trials are outliers. I am having a tough time finding/coming up with a code that will allow this. Are there any suggestions?! 

	[[alternative HTML version deleted]]

