A function to calculate relative variable importance for selecting node splits over
a semforest
object.
varimp(forest, var.names = NULL, verbose = F,
cluster = NULL, eval.fun = evaluateTree, method = "permutation", ...)
A semforest
object
Covariates used in the forest creation process. NULL value will be automatically filled in by the function.
Boolean to print messages while function is running.
Experimental. Some alternative methods to compute importance. Default is "permutation".
Default is evaluateTree
function. The value of the -2LL of the leaf nodes is compared to baseline overall model.
An object of class "cluster" representing a parallel socket cluster. See package makeCluster.
Optional arguments.
Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.