sample.ctree: Function to sample from a ctree fitted model

Description Usage Arguments Value Examples

View source: R/SDPSyn.R

Description

Function to sample from a ctree fitted model

Usage

1
sample.ctree(xp, fit.model, smoothing = "none", ...)

Arguments

y

a vector of values to pull from

terminalnodes

a vector of terminal nodes

newterminalnodes:

a path to save the graph

Value

a vector of the same size than terminalnodes, obtained by sampling betweenn the values of y such for the same terminal node.

Examples

1
y<-iris$Species;x<-xp<-iris[,-5];fit.model<-fitmodel.ctree(x,y);sample.ctree(x,fit.model)

DanielBonnery/BigSyn documentation built on June 28, 2020, 7:18 p.m.