pp_ggparty {PPtreeregViz} | R Documentation |
PPTreereg plot with independent variable
Description
projection pursuit regression tree plot with independent variable
Usage
pp_ggparty(PPTreeregOBJ,ind_variable,final.rule=5,Rule=1, ...)
Arguments
PPTreeregOBJ |
PPTreereg class object |
ind_variable |
independent variable to show |
final.rule |
final rule to assign numerical values in the final nodes. 1: mean value in the final nodes 2: median value in the final nodes 3: using optimal projection 4: using all independent variables 5: using several significant independent variables |
Rule |
split rule 1: mean of two group means 2: weighted mean of two group means - weight with group size 3: weighted mean of two group means - weight with group sd 4: weighted mean of two group means - weight with group se 5: mean of two group medians 6: weighted mean of two group medians - weight with group size 7: weighted mean of two group median - weight with group IQR 8: weighted mean of two group median - weight with group IQR and group size |
... |
arguments to be passed to methods |
Details
Draw projection pursuit regression tree with independent variable. It is modified
from a function in partykit
library.
Value
An object of the class ggplot
Examples
data(dataXY)
Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2)
pp_ggparty(Model, "X1", final.rule=5)