bzSummary {beanz}R Documentation

Posterior subgroup treatment effects

Description

Present the posterior subgroup treatment effects

Usage

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)
)

Arguments

stan.rst

a class beanz.stan object generated by bzCallStan

sel.grps

an array of subgroup numbers to be included in the summary results

ref.stan.rst

a class beanz.stan object from bzCallStan that is used as the reference

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 plot function

quants

lower and upper quantiles of the credible intervals in the forest plot

Value

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.

See Also

bzCallStan

Examples

## 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)


[Package beanz version 3.1 Index]