getParDiffTree: Return table with parameter differences of a tree

View source: R/getParDiffTree.R

getParDiffTreeR Documentation

Return table with parameter differences of a tree

Description

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

Usage

getParDiffTree(tree, measure = "wald", normalize = FALSE)

Arguments

tree

a semtree 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 matrix containing parameter differences. The matrix has n rows and k columns, where n is the number of non-leaf nodes of the tree and k is the number of model parameters. The rows are named by the node IDs as given getNodeById and the columns are named as in coef.

Author(s)

Manuel Arnold


semtree documentation built on May 29, 2024, 4:05 a.m.