PPregNodeViz | R Documentation |
Visualize node in projection pursuit regression tree.
PPregNodeViz(PPTreeregOBJ,node.id,Rule=5)
PPTreeregOBJ |
PPTreereg class object - a model to be explained |
node.id |
node ID of inner or final node |
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 |
This function is developed for the visualization of inner and final nodes. Visual representation of the projection coefficient value of each node and the result of projected data help understand growth process of the projection pursuit regression tree. For the inner node, two plots are provided - the bar chart style plot with projection pursuit coefficients of each variable, the histogram of the projected data. For the final node, scatter plot of observed Y vs. fitted Y according to the final rules.
An object of the class ggplot
data(dataXY) Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2) PPregNodeViz(Model,node.id=1) PPregNodeViz(Model,node.id=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.