prune | R Documentation |
This function allows to filter out suboptimal branches, as well as weak ones or these not in particular paths of interest.
prune(x, targets, iomin, score)
x |
vistla object or a vistla_hierarchy object. |
targets |
a character vector of features. When not missing, all branches not on lying paths to these targets are pruned. Unreachable targets are ignored, while names not present in the analysed set cause an error. |
iomin |
a legacy name for score, valid only for vistla objects; passing a value to either of them works the same, but giving some values for both is an error. |
score |
a score threshold below which branches should be removed.
When given, it effectively overrides the value of |
Pruned x
; if both arguments are missing, this function still removes suboptimal branches.
## Not run:
data(chain)
v<-vistla(Y~.,data=chain)
print(v)
print(prune(v,targets="M3"))
print(prune(v,score=0.3))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.