Adding a Footnote to Cells with Small Sample Sizes
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
- Table JavaScript and Plot JavaScript for an explanation of how to run this code.
- Table JavaScript and Plot JavaScript Reference for technical information.
- Table JavaScript and Plot JavaScript Examples Library for other examples.
- JavaScript for information about the JavaScript programming language.
- QScript for tools for automating projects using JavaScript.
- JavaScript Variables for detail on how to create new variables in the Variables and Questions tab using JavaScript.