|
The Statistics node provides basic summary information about numeric fields. It calculates
summary statistics for individual fields and correlations between fields.
|
Example
node = stream.create("statistics", "My node")
# "Settings" tab
node.setPropertyValue("examine", ["Age", "BP", "Drug"])
node.setPropertyValue("statistics", ["mean", "sum", "sdev"])
node.setPropertyValue("correlate", ["BP", "Drug"])
# "Correlation Labels..." section
node.setPropertyValue("label_correlations", True)
node.setPropertyValue("weak_below_absolute", 0.25)
node.setPropertyValue("weak_label", "lower quartile")
node.setPropertyValue("strong_above_absolute", 0.75)
node.setPropertyValue("medium_label", "middle quartiles")
node.setPropertyValue("strong_label", "upper quartile")
# "Output" tab
node.setPropertyValue("full_filename", "c:/output/statistics_output.html")
node.setPropertyValue("output_format", "HTML")
Table 1. statisticsnode properties
statisticsnode properties |
Data type |
Property description |
use_output_name
|
flag
|
Specifies whether a custom output name is used. |
output_name
|
string
|
If use_output_name is true, specifies the name to use. |
output_mode
|
Screen
File
|
Used to specify target location for output generated from the output node. |
output_format
|
Text (.txt)
HTML (.html)
Output (.cou) |
Used to specify the type of output. |
full_filename
|
string
|
|
examine
|
list |
|
correlate
|
list |
|
statistics
|
[count mean sum min max range variance sdev semean median mode]
|
|
correlation_mode
|
Probability
Absolute
|
Specifies whether to label correlations by probability or absolute value. |
label_correlations
|
flag
|
|
weak_label
|
string
|
|
medium_label
|
string
|
|
strong_label
|
string
|
|
weak_below_probability
|
number
|
When correlation_mode is set to Probability , specifies the
cutoff value for weak correlations. This must be a value between 0 and 1—for example, 0.90. |
strong_above_probability
|
number
|
Cutoff value for strong correlations. |
weak_below_absolute
|
number
|
When correlation_mode is set to Absolute , specifies the
cutoff value for weak correlations. This must be a value between 0 and 1—for example, 0.90. |
strong_above_absolute
|
number
|
Cutoff value for strong correlations. |