categorical-contingency
  • 27 Jul 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

categorical-contingency

  • Dark
    Light
  • PDF

Article summary

The categorical-contingency parser will load data from two or more columns in a source data table and concatenate their values into multiple categorical variables within multiple categorical collections.

{
  "parser_type": "categorical-contingency",
  "table_alias": "tata",
  "column": "ccc1",
  "contingency": "ccc2",
  "contingency_as_collection": true,
  "contingency_as_variable": true
}


There are a number of variants for the categorical-contingency parser.

The basic form is to produce collections named: column name | contingency column name = contingency value, and variables named: column value.

However, by setting attribute flags such as contingency_as_collection, contingency_as_variable, and single_collection, the resulting collection and variable names can be adjusted for various purposes.

contingency

usage: required
A different column that will have its name and value combined with the column name to produce collection names with the pattern: column name | contingency name = contingency value.

contingency_as_collection

usage: optional
When set to true, only the contingency column value will be used to create the collection name.

contingency_as_variable

usage: optional
When set to true, the column value will produce the
collection name and the contingency value will produce the variable name.

single_collection

usage: optional
When set to true, there will only be one collection created, named column name | contingency column name, and created variables will be named column value | contingency column value.


Was this article helpful?