About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The Matrix node creates a table that shows relationships between fields. It's most
commonly used to show the relationship between two symbolic fields, but it can also show
relationships between flag fields or numeric fields.
Example
stream = modeler.script.stream()
sourcenode = stream.findByID("id46WRP1285C")
node = stream.create("matrix", "My node")
# "Settings" tab
node.setPropertyValue("fields", "Numerics")
node.setPropertyValue("row", "K")
node.setPropertyValue("column", "Na")
node.setPropertyValue("cell_contents", "Function")
node.setPropertyValue("function_field", "Age")
node.setPropertyValue("function", "Sum")
# "Appearance" tab
node.setPropertyValue("sort_mode", "Ascending")
node.setPropertyValue("highlight_top", 1)
node.setPropertyValue("highlight_bottom", 5)
node.setPropertyValue("display", ["Counts", "Expected", "Residuals"])
node.setPropertyValue("include_totals", True)
stream.link(sourcenode, node)
properties |
Data type | Property description |
---|---|---|
|
|
|
|
field | |
|
field | |
|
flag | Specifies whether user-missing (blank) and system missing (null) values are included in the row and column output. |
|
|
|
|
string | |
|
|
|
|
|
|
|
number | If non-zero, then true. |
|
number | If non-zero, then true. |
|
|
|
|
flag | |
|
flag | Specifies whether a custom output name is used. |
|
string | If is true, specifies the name to use. |
|
|
Used to specify target location for output generated from the output node. |
|
(.tab)
(.csv)
(.html)
(.cou) |
Used to specify the type of output. Both the and
formats can take the modifier , which
transposes the rows and columns in the table. |
|
flag | When the is , causes the output to be
separated into pages. |
|
number | When used with , specifies the lines per page of
output. |
|
string |
Was the topic helpful?
0/1000