//Example macro calculating stats from a results table column //Import any data into a results table and then use the following to extract summary stats //The examples use "Area" as the column heading //All results checked with OpenOffice Calc, note: variance uses n-1 to correct for sample bias //Some variables N=0; total_area=0; mean_area=0; total_variance=0; variance_area=0; SD_Area=0; SE_Area=0; CI95_Area=0; max_area=0; min_area=0; //Generate a results table run("Clear Results"); run("Blobs (25K)"); run("Make Binary"); run("Set Measurements...", "area redirect=None decimal=4"); run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00 show=Nothing display exclude"); //Number of results in "Area" Column N = nResults; //Mean "Area"column for (a=0; amax_area) { max_area = getResult("Area",a); } else{}; } //Min value in "Area" column (note: requires max value) min_area=max_area; for (a=0; a