Hi All,
I wondered if anyone could help me with a problem I've encountered with the visTree package in R, please? https://arxiv.org/pdf/2103.04139.pdf
Essentially, I fit the decision tree model (whether CART, conditional inference tree, or otherwise) yet R returns the following error: 'Error in if (node[[node_id]]$split$breaks) { : argument is of length zero'
An example of my code is given here, with a categorical response variable 'Y.'
ct.fit <- ctree(Y ~ ., train, minbucket = 10, mincrit = 0.95, maxdepth = 3)
visTree(ct.fit, interval = TRUE, color.type = 1, alpha = 0.6,
text.percentile = 1.2, text.bar = 1.8)
Would appreciate any possible feedback.