Description Usage Arguments Value
Tests whether interactions have been detected and modelled, and reports the relative strength of these. Results can be visualised with gbm.perspec
The function assesses the magnitude of 2nd order interaction effects in gbm models fitted with interaction depths greater than 1. This is achieved by:
1. forming predictions on the linear scale for each predictor pair;
2. fitting a linear model that relates these predictions to the predictor pair, with the the predictors fitted as factors;
3. calculating the mean value of the residuals, the magnitude of which increases with the strength of any interaction effect;
4. results are stored in an array;
5. finally, the n most important interactions are identified, where n is 25
1 | gbm.interactions(gbm.object, use.weights=FALSE, mask.object)
|
gbm.object |
A gbm object |
use.weights |
Logical. If |
mask.object |
a gbm object describing sample intensity |
object of class gbm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.