Running the Analysis
The command syntax used to produce a Naive Bayes analysis is shown here.
NAIVEBAYES response_01
BY addresscat callcard callid callwait card card2 churn
commutecarpool confer ebill edcat equip forward internet
multline owngame ownipod ownpc spousedcat tollfree voice
WITH cardmon ed equipmon equipten lncardmon lntollmon
pets_saltfish spoused tollmon tollten
/SUBSET NOSELECTION
/SAVE PREDPROB.
- This analysis specifies response_01 as the response variable.
- Variables following the
BY
keyword are treated as categorical predictors, while those following theWITH
keyword are treated as scale. - The
SUBSET
subcommand specifies that the procedure should not perform predictor selection. All specified predictors are to be used in creating the classification. - Model-estimated probabilities for the values of response_01 are saved to the variables PredictedProbability_1 and PredictedProbability_2.