moretrees_compute_betas: 'moretrees_compute_betas' Computes MOReTreeS estimates and...

Description Usage Arguments Value See Also

View source: R/moretrees_compute_betas.R

Description

moretrees_compute_betas Computes MOReTreeS estimates and credible intervals for exposure effects from model output

Usage

1
moretrees_compute_betas(mod, ci_level, A_leaves, outcomes)

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.

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.

outcomes

Character vector of length n. outcomes[i] is a string indicating the outcome experienced by unit i.

Value

A list containing the following elements: 1. beta_moretrees: estimated coefficients and credible intervals by group; 2. beta_est: estimated coefficients and credible intervals by outcome;

See Also

Other Processing model output: ml_by_group, moretrees_compute_thetas


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