BNET Procedure
Variable Selection
The network shown in Figure 1 does not include the variable Sex or Duration, because PROC BNET automatically removes these variables from the network by using independence tests. PROC BNET produces the table in Figure 3, which shows the results of independence tests that are conducted to select variables. Variables that are found to be marginally independent or conditionally independent of the target variable are removed from the network. PROC BNET removes Duration from the network because the p-value of the chi-square and G-square statistics of Duration are greater than 0.05 (the default value of the ALPHA= option). Sex is conditionally independent of Pain given Treatment; therefore, PROC BNET removes Sex from the network.
Figure 3: Variable Selection
| Variable Selection | ||||||||
|---|---|---|---|---|---|---|---|---|
| Variable | Selected | Chi-Square | Pr > ChiSq | G-Square | Pr > GSq | Mutual Information | DF | Conditional Variables |
| Sex | No | 7.20000 | 0.0658 | 7.59454 | 0.0552 | 0.34481 | 3 | Treatment |
| Treatment | Yes | 13.71429 | 0.0011 | 14.02297 | 0.0009 | 0.45652 | 2 | |
| Age | Yes | 14.60003 | 0.0007 | 15.27118 | 0.0005 | 0.47404 | 2 | |
| Duration | No | 2.25795 | 0.3234 | 3.34851 | 0.1874 | 0.23298 | 2 | |