Node Names, Long Names, and Node Comments
Node Names, Long Names, and Node Comments
The Node Names displayed by default are taken directly from the column header of the imported dataset. To keep the Graph Panel uncluttered, we will keep these "short" names as the formal Node Names. On the other hand, we may want to have longer, more descriptive names available when interpreting the network or presenting it to an audience.
BayesiaLab offers three levels of "node names" for each node:
- The Node Name uniquely identifies a node and is displayed by default.
- A Long Name can be displayed instead of the Node Name on the Graph Panel, on the Monitors in the Monitor Panel, on reports, and in the context of many analysis functions.
- A Node Comment provides additional space for supplemental information about a node. For instance, if nodes represent survey responses, the Node Comment could accommodate the verbatim survey question.
Long Names
Long Names can be added to a network in two ways:
- One by one for each node via the Properties tab of the Node Editor (
Node Context Menu > Edit > Properties
). - Using a Dictionary to provide Long Names for multiple nodes at once.
Dictionary
Given that we want to apply Long Names to 49 nodes, using a Dictionary will be much more convenient. The format of a Dictionary is rather straightforward:
- We define a plain text file that includes one Node Name per line. Spaces and special characters in the Node Name require backslash "\" as an escape character.
- Each Node Name is followed by a delimiter (“=”, tab, or space) and then by the Long Name.
Here is a preview of the Dictionary:
You can download the complete Dictionary file here:
AmesLongNames.txt (opens in a new tab)
To attach this Dictionary, select Menu > Data > Associate Dictionary > Node > Long Names
.
Next, we select the Dictionary file, “AmesLongNames.txt”.
Upon loading the Dictionary file, the appearance of the network does not change. Only if an error occurred would a warning triangle appear in the lower right corner of the Graph Window. Also, any error details would be available in the Console.
We now have the option of turning on the Long Names for individual nodes or all nodes. For our purposes, we want to see the Long Names on all nodes:
- Select all nodes, e.g., using Ctrl+A.
Node Context Monitor > Properties > Rendering Properties > Show Long Name
.- Check the Show Long Name box in the pop-up window:
- Click OK.
Instead of the "short" Node Names, BayesiaLab now displays the Long Names for all nodes.