Adding a Footnote to Cells with Small Sample Sizes

From Q
Jump to navigation Jump to search

When any cell has a Column n of less than 20, add a marker and footnote. If the table does not contain Column n then Base n is used instead.

if (table.availableStatistics.indexOf('Column n') != -1)
	table.addFootNoteForCellsLessThan('Column n', 20, '*', '* sample size < 20');
else
	table.addFootNoteForCellsLessThan('Base n', 20, '*', '* sample size < 20');

See also