disstree.assign | R Documentation |
Find the tree classification rule that applies to provided cases.
disstree.assign(rules, profile, covar=attr(rules,"covariates"))
rules |
Character vector. List of classification rules such as those returned by |
profile |
Data frame. Profiles of cases to be classified with the rules. |
covar |
Character vector. List of names of covariates used by the rules. |
rules
must be given as strings of R commands. Use disstree.get.rules
to get the classification rules of a tree of class disstree
.
Rules are expected to create a full partition of the space of possible values of the covariates, i.e., any profile must satisfy one and only one of the rules.
A vector of length equal to the number of rows of profile
with for each case the index of the rule that applies.
Gilbert Ritschard)
disstree
, disstreeleaf
, disstree.get.rules
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.