summary.bartcs {bartcs}R Documentation

Summary for bartcs object

Description

Provide summary for bartcs object.

Usage

## S3 method for class 'bartcs'
summary(object, ...)

Arguments

object

A bartcs object.

...

Additional arguments. Not yet supported.

Details

summary() provides 95% posterior credible interval for both aggregated outcome and individual outcomes from each MCMC chain.

Value

Provide list with the following components

model

separate_bart or single_bart.

trt_value

Treatment values for each treatment group: trt_treated for the treatment group and trt_control for the control group.

tree_params

Parameters for the tree structure.

chain_params

Parameters for MCMC chains.

outcome

Summary of outcomes from the model. This includes both aggregated outcome and individual outcomes from each MCMC chain.

Examples

data(ihdp, package = "bartcs")
x <- single_bart(
  Y               = ihdp$y_factual,
  trt             = ihdp$treatment,
  X               = ihdp[, 6:30],
  num_tree        = 10,
  num_chain       = 2,
  num_post_sample = 20,
  num_burn_in     = 10,
  verbose         = FALSE
)
summary(x)


[Package bartcs version 1.2.1 Index]