//
//Naive bayes discremination command
//
//
//Syntax
nbayes target by variables;
//Remark
//Tareget variable is preferable to be cathegory variable that has 2 or 3 value.
//If variable is contenious, this is categorize in some category.
//
//Exampl
//Probaility of visitation of home exhibition by direct mail answer.
//
//Read direct mail answers and visitation or not(def).
get dmdat500R.csv@;
//Execute naive bayes command.
nbayes def by dm1-5 area home job income;
//View output
get freq@ana;
//View effeciency for discremination.
plot line bayesRate by countRate;