# chaidnode properties #

![CHAID node icon](https://dataplatform.cloud.ibm.com/docs/content/wsd/nodes/scripting_guide/clementine/images/chaidnodeicon.png)The CHAID node generates decision trees using chi\-square statistics to identify optimal splits\. Unlike the C&R Tree and Quest nodes, CHAID can generate non\-binary trees, meaning that some splits have more than two branches\. Target and input fields can be numeric range (continuous) or categorical\. Exhaustive CHAID is a modification of CHAID that does a more thorough job of examining all possible splits but takes longer to compute\.

<!-- <table "summary="chaidnode properties" id="chaidnodeslots__table_glq_ck3_cdb" class="defaultstyle" "> -->

chaidnode properties  

Table 1\. chaidnode properties

| `chaidnode` Properties             | Values                                                           | Property description                                                                                                                                                                                                                                                                                                     |
| ---------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `target`                           | *field*                                                          | CHAID models require a single target and one or more input fields\. You can also specify a frequency\. See [Common modeling node properties](https://dataplatform.cloud.ibm.com/docs/content/wsd/nodes/scripting_guide/clementine/modelingnodeslots_common.html#modelingnodeslots_common) for more information\.                                                                                                                                                    |
| `continue_training_existing_model` | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `objective`                        | `Standard`  <br>`Boosting`  <br>`Bagging`  <br>`psm`             | `psm` is used for very large datasets, and requires a server connection\.                                                                                                                                                                                                                                                |
| `model_output_type`                | `Single`  <br>`InteractiveBuilder`                               |                                                                                                                                                                                                                                                                                                                          |
| `use_tree_directives`              | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `tree_directives`                  | *string*                                                         |                                                                                                                                                                                                                                                                                                                          |
| `method`                           | `Chaid`  <br>`ExhaustiveChaid`                                   |                                                                                                                                                                                                                                                                                                                          |
| `use_max_depth`                    | `Default`  <br>`Custom`                                          |                                                                                                                                                                                                                                                                                                                          |
| `max_depth`                        | *integer*                                                        | Maximum tree depth, from 0 to 1000\. Used only if `use_max_depth = Custom`\.                                                                                                                                                                                                                                             |
| `use_percentage`                   | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `min_parent_records_pc`            | *number*                                                         |                                                                                                                                                                                                                                                                                                                          |
| `min_child_records_pc`             | *number*                                                         |                                                                                                                                                                                                                                                                                                                          |
| `min_parent_records_abs`           | *number*                                                         |                                                                                                                                                                                                                                                                                                                          |
| `min_child_records_abs`            | *number*                                                         |                                                                                                                                                                                                                                                                                                                          |
| `use_costs`                        | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `costs`                            | *structured*                                                     | Structured property\.                                                                                                                                                                                                                                                                                                    |
| `trails`                           | *number*                                                         | Number of component models for boosting or bagging\.                                                                                                                                                                                                                                                                     |
| `set_ensemble_method`              | `Voting`  <br>`HighestProbability`  <br>`HighestMeanProbability` | Default combining rule for categorical targets\.                                                                                                                                                                                                                                                                         |
| `range_ensemble_method`            | `Mean`  <br>`Median`                                             | Default combining rule for continuous targets\.                                                                                                                                                                                                                                                                          |
| `large_boost`                      | *flag*                                                           | Apply boosting to very large data sets\.                                                                                                                                                                                                                                                                                 |
| `split_alpha`                      | *number*                                                         | Significance level for splitting\.                                                                                                                                                                                                                                                                                       |
| `merge_alpha`                      | *number*                                                         | Significance level for merging\.                                                                                                                                                                                                                                                                                         |
| `bonferroni_adjustment`            | *flag*                                                           | Adjust significance values using Bonferroni method\.                                                                                                                                                                                                                                                                     |
| `split_merged_categories`          | *flag*                                                           | Allow resplitting of merged categories\.                                                                                                                                                                                                                                                                                 |
| `chi_square`                       | `Pearson`  <br>`LR`                                              | Method used to calculate the chi\-square statistic: Pearson or Likelihood Ratio                                                                                                                                                                                                                                          |
| `epsilon`                          | *number*                                                         | Minimum change in expected cell frequencies\.\.                                                                                                                                                                                                                                                                          |
| `max_iterations`                   | *number*                                                         | Maximum iterations for convergence\.                                                                                                                                                                                                                                                                                     |
| `set_random_seed`                  | *integer*                                                        |                                                                                                                                                                                                                                                                                                                          |
| `seed`                             | *number*                                                         |                                                                                                                                                                                                                                                                                                                          |
| `calculate_variable_importance`    | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `calculate_raw_propensities`       | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `calculate_adjusted_propensities`  | *flag*                                                           |                                                                                                                                                                                                                                                                                                                          |
| `adjusted_propensity_partition`    | `Test`  <br>`Validation`                                         |                                                                                                                                                                                                                                                                                                                          |
| `maximum_number_of_models`         | *integer*                                                        |                                                                                                                                                                                                                                                                                                                          |
| `train_pct`                        | *double*                                                         | The algorithm internally separates records into a model building set and an overfit prevention set, which is an independent set of data records used to track errors during training in order to prevent the method from modeling chance variation in the data\. Specify a percentage of records\. The default is `30`\. |

<!-- </table "summary="chaidnode properties" id="chaidnodeslots__table_glq_ck3_cdb" class="defaultstyle" "> -->

<!-- </article "role="article" "> -->