Learn R Programming

PPtreeregViz (version 2.0.5)

PPimportance: Calculate variable importance

Description

Calculate the importance of variables in the PPTreereg model. For local importance, weighted sum of projection coefficients with the number of data corresponding to each node as the weighted value in each node is used. The global importance is absolute sum of local importance.

Usage

PPimportance(PPTreeregOBJ,...)

Value

An object of the class PPimpobj

Arguments

PPTreeregOBJ

PPTreereg class object - a model to be explained

...

arguments to be passed to methods

Examples

Run this code
data(dataXY)
Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2)
PPimportance(Model)

Run the code above in your browser using DataLab