Description Usage Arguments Value See Also
View source: R/moretrees_compute_betas.R
moretrees_compute_betas
Computes MOReTreeS estimates and credible
intervals for exposure effects from model output
1 | moretrees_compute_betas(mod, ci_level, A_leaves, outcomes)
|
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. |
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;
Other Processing model output: ml_by_group
,
moretrees_compute_thetas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.