A function to calculate relative variable importance for selecting node
splits over a semforest object.
varimp(
forest,
var.names = NULL,
verbose = FALSE,
eval.fun = evaluateTree,
method = NULL,
conditional = FALSE,
strict = TRUE,
...
)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.
Default is evaluateTree function. The value of
the -2LL of the leaf nodes is compared to baseline overall model.
Character. Define the method, with which importance is computed. The default is NULL and picks the appropriate permutation-based estimation method depending on whether no focus parameters are given ("permutation") or focus parameters are given ("permutationFocus")
Conditional variable importance if TRUE, otherwise marginal variable importance.
Boolean. Default is TRUE. Only consider estimates from models if there were no model convergence problems. Otherwise, partial results are used, which may incur some downward bias.
Optional arguments.
Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.