Skip to main content

Contingency Table

A contingency table.

Options

  • data | object (required): object of value arrays. Default: none.
  • rowVar | (string|Factor) (required): name of categorical variable to be displayed along the rows. Default: none.
  • colVar | (string|Factor) (required): name of categorical variable to be displayed along the columns. Default: none.
  • relativeFreqs | boolean: controls whether to display relative frequencies. Default: false.
  • group | (string|Factor): name of grouping variable. Default: none.
  • display | (array<string>|string): whether to display Row Percent and/or Column Percent. Default: [].
  • nDecimalPlaces | number: number of decimal places for relative frequencies displayed in table. Default: 3.

Examples

Live Editor
Result
ReferenceError: Provider is not defined