How do I remove outliers?


Author
Message
YoshikoArima
YoshikoArima
New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)New Member (48 reputation)
Group: Forum Members
Posts: 4, Visits: 5
Hi, I would like to run a block to remove outlier before the finish block to get the average value when outliers are removed. Below is what I have in mind as an outlier block, but when I run it, the list.RTremove.mean is zero. Could you please tell me what I am doing wrong?

<block outlier>
/ onblockend = [
 var i=0;
 var RTmin= list.RT.mean - 3 * list.RT.standarddeviation ;
 var RTmax = list.RT.mean + 3 * list.RT.standarddeviation;
 var num = list.RT.poolsize;

 while (i <= num ) {
     var currentvalue = list.RT.item(i); 
     if (values.currentvalue >= values.RTmin && values.currentvalue <= values.RTmax)      
     { list.RTremove.appenditem(values.currentvalue) ;    
     };    
        i++;
    };        
]

</block>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
YoshikoArima - Last Year
Dave - Last Year
             Thank you very much !!! I will try them
YoshikoArima - Last Year
YoshikoArima - Last Year
                 No.
Dave - Last Year

Reading This Topic

Explore
Messages
Mentions
Search