getParDiffForest: Return list with parameter differences of a forest

View source: R/getParDiffForest.R

getParDiffForestR Documentation

Return list with parameter differences of a forest

Description

Returns a list of tables with some measure of parameter differences between post-split nodes.

Usage

getParDiffForest(forest, measure = "wald", normalize = FALSE)

Arguments

forest

a semforest object.

measure

a character. "wald" (default) gives the squared parameter differences divided by their pooled standard errors. test" gives the contributions of the parameters to the test statistic. "raw" gives the absolute values of the parameter differences.

normalize

logical value; if TRUE parameter differences of each split are divided by sum of all differences the corresponding split. Set to FALSE by default.

Value

A list with data.frames containing parameter differences for each tree of the forest. The rows of the data.frames correspond to the non-leaf nodes of the respective trees. The first column contains the name of the predictor variables and the remaining columns contain the parameter differences. The rows of the data.frames are named by the node IDs as given getNodeById and the columns are named as in coef.

Author(s)

Manuel Arnold


brandmaier/semtree documentation built on April 18, 2024, 3:24 a.m.