SAVE Subcommand (NAIVEBAYES command)

The SAVE subcommand writes optional temporary variables to the active dataset.

PREDVAL(varname). Predicted value. The predicted value is the dependent variable category with the highest posterior probability as estimated by the Naïve Bayes model. A valid variable name must be specified. The default variable name is PredictedValue.

PREDPROB(rootname:n). Predicted probability. The predicted probabilities of the first n categories of the dependent variable are saved. Suffixes are added to the root name to get a group of variable names that correspond to the dependent variable categories. If a root name is specified, it must be a valid variable name. The root name can be followed by a colon and a positive integer that indicates the number of probabilities to save. The default root name is PredictedProbability. The default n is 25. To specify n without a root name, enter a colon before the number.