Skip to Content

State Values

Work in Progress

A State Values dictionary assigns numbers to the states of a node. In this survey example, Under 18\mathrm{Under\ 18} has the representative age 17, and 18\mathrm{18} has the value 18. BayesiaLab uses those numbers to calculate an expected value.

  1. Save one entry per state in a text file. The period separates the node name from the state name. A backslash preserves the space in Under 18\mathrm{Under\ 18}.
Age.Under\ 18=17.0 Age.18=18.0
  1. Open the file with Menus > Data > Associate Dictionary > State > State Values.
  2. Double-click Age\mathit{Age} and open the Values tab. Check both assignments against the file.
Values tab for Age showing 17 beside Under 18 and 18 beside the state 18

To reuse the assignments, export a State Values dictionary.