The HPBNET Procedure

Variable Selection

The network in Figure 1 does not include variables Sex or Duration, because PROC HPBNET automatically selects those variables by using independence tests. The following statements produce Figure 3, which shows the variable selection results. PROC HPBNET removes Duration from the network because the p-value of the chi-square and G-square statistics of Duration is greater than 0.05 (the default value for the ALPHA= option, which is not specified). Sex is conditionally independent of Pain given Treatment; therefore, PROC HPBNET also removes it from the network.

 proc print data=varselect noobs label;
 run;

Figure 3: Variable Selection

Variable NameSelectedChi-Square StatisticsG-Square StatisticsP-Value of Chi-Square
Statistics
P-Value of G-Square
Statistics
Mutual InformationDegree
of Freedom
Conditional Variables
SexNO7.20007.59450.065790.055180.344813Treatment
TreatmentYES13.714314.02300.001050.000900.456522 
AgeYES14.600015.27120.000680.000480.474042 
DurationNO2.25793.34850.323370.187450.232982 


Last updated: May 25, 2022