moretrees_compute_thetas: 'moretrees_compute_thetas' Computes MOReTreeS estimates and...

Description Usage Arguments Value See Also

View source: R/moretrees_compute_thetas.R

Description

moretrees_compute_thetas Computes MOReTreeS estimates and credible intervals for covariate effects from model output

Usage

1
moretrees_compute_thetas(mod, ci_level, m, A_leaves = NULL)

Arguments

mod

List containing outputs from spike and slab VI algorithm

ci_level

A number between 0 and 1 giving the desired credible interval. For example, ci_level = 0.95 (the default) returns a 95% credible interval.

m

Integer number of variables in covariate matrix W

A_leaves

pL x p sparse ancestor Matrix where rows correspond to leaves of tree (outcomes) and columns correspond to nodes on tree. Results in mod must have same ordering as columns of A_leaves.

Value

A matrix containing the estimates and confidence intervals.

See Also

Other Processing model output: ml_by_group, moretrees_compute_betas


emgthomas/moretrees_pkg documentation built on June 20, 2020, 6:13 p.m.