Description Usage Arguments Value Examples
Function to sample from a ctree fitted model
1 | sample.ctree(xp, fit.model, smoothing = "none", ...)
|
y |
a vector of values to pull from |
terminalnodes |
a vector of terminal nodes |
newterminalnodes: |
a path to save the graph |
a vector of the same size than terminalnodes, obtained by sampling betweenn the values of y such for the same terminal node.
1 | y<-iris$Species;x<-xp<-iris[,-5];fit.model<-fitmodel.ctree(x,y);sample.ctree(x,fit.model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.