The HPBNET Procedure
Example 4.4 Markov Blanket
This example uses the Sampsio.Hmeq sample data set to learn a Markov blanket Bayesian network, which is specified by STRUCTURE=MB.
proc hpbnet data=sampsio.hmeq indeptest=MI mialpha=0.2 structure=MB nbin=5
missingint=IMPUTE missingnom=LEVEL;
target Bad;
input Reason Job Delinq Derog Ninq/level=NOM;
input Loan Mortdue Value Yoj Clage Clno Debtinc/level=INT;
output network=network;
run;
The following statements produce Figure 7, which shows the network structure. In the structure, Bad is a parent of Delinq and Derog, Delinq and Ninq are the other parents of Derog, and Ninq is the other parent of Delinq.
proc print data=network noobs label;
var _parentnode_ _childnode_;
where _type_="STRUCTURE";
run;
Figure 7: Markov Blanket Network Structure
| Parent Node | Child Node |
|---|---|
| BAD | DELINQ |
| NINQ | DELINQ |
| BAD | DEROG |
| DELINQ | DEROG |
| NINQ | DEROG |
Last updated: May 25, 2022