dot-add_modelinfo function

Add model information to a personalised-model-ctree

Add model information to a personalised-model-ctree

For internal use.

.add_modelinfo(x, nodeids, data, model, coeffun)

Arguments

  • x: constparty object.
  • nodeids: node ids, usually the terminal ids.
  • data: data.
  • model: model.
  • coeffun: function that takes the model object and returns the coefficients. Useful when coef() does not return all coefficients (e.g. survreg).

Returns

tree with added info. Class still to be added.

  • Maintainer: Heidi Seibold
  • License: GPL-2 | GPL-3
  • Last published: 2024-11-08

Useful links