summarize_model: Summarize a bayesian linear model

Description Usage Arguments Value

View source: R/summarization.R

Description

Extracts the salient results from a tree model. The new interface to the old "get_*_results" functions

Usage

1
summarize_model(model, tree, leaf_scales = NULL, just_leaves = TRUE, ...)

Arguments

model

the model to summarize

tree

the tree used to fit the model

leaf_scales

scaling factors for the leaves, useful if the leaf response variables were scaled before modelling.

add_fixed_effect

whether or not to incorporate the fixed add the main effect to the leaf effects.

p0

the leaf coefficient name

p1

the first layer parent name

p2

the second layer parent name

Value

A list containing

  1. fix The fixed effects of the model

  2. effects The estimated median effects in the model

  3. ranints The estimated random intercepts from the model

  4. b_post The effect posterior samples


cfhammill/hierarchyTrees documentation built on Feb. 8, 2020, 2:54 a.m.