View source: R/beanz_present.R
bzSummary | R Documentation |
Present the posterior subgroup treatment effects
bzSummary(
stan.rst,
sel.grps = NULL,
ref.stan.rst = NULL,
ref.sel.grps = 1,
cut = 0,
digits = 3
)
bzPlot(stan.rst, sel.grps = NULL, ref.stan.rst = NULL, ref.sel.grps = 1, ...)
bzForest(
stan.rst,
sel.grps = NULL,
ref.stan.rst = NULL,
ref.sel.grps = 1,
...,
quants = c(0.025, 0.975)
)
stan.rst |
a class |
sel.grps |
an array of subgroup numbers to be included in the summary results |
ref.stan.rst |
a class |
ref.sel.grps |
subgroups from the reference model to be included in the summary table |
cut |
cut point to compute the probabiliby that the posterior subgroup treatment effects is below |
digits |
number of digits in the summary result table |
... |
options for |
quants |
lower and upper quantiles of the credible intervals in the forest plot |
bzSummary
generates a dataframe with summary statistics
of the posterior treatment effect for the selected subgroups.
bzPlot
generates the density plot of the posterior treatment
effects for the selected subgroups. bzForest
generates the forest plot of the posterior treatment
effects.
bzCallStan
## Not run:
sel.grps <- c(1,4,5);
tbl.sub <- bzSummary(rst.sr, ref.stan.rst=rst.nse, ref.sel.grps=1);
bzPlot(rst.sr, sel.grps = sel.grps, ref.stan.rst=rst.nse, ref.sel.grps=1);
bzForest(rst.sr, sel.grps = sel.grps, ref.stan.rst=rst.nse, ref.sel.grps=1);
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.