Learn R Programming

beanz (version 3.1)

bzRptTbl: Summary table of treatment effects

Description

Compare the DIC from different models and report the summary of treatment effects based on the model with the smallest DIC value

Usage

bzRptTbl(lst.stan.rst, dat.sub, var.cov, cut = 0, digits = 3)

Value

A dataframe with summary statistics of the model selected by DIC

Arguments

lst.stan.rst

list of class beanz.stan results from bzCallStan for different models

dat.sub

dataset with subgroup treatment effect summary data

var.cov

array of column names in dat.sub that corresponds to binary or ordinal baseline covariates

cut

cut point to compute the probabiliby that the posterior subgroup treatment effects is below

digits

number of digits in the summary result table