Learn R Programming

bartcs (version 1.3.0)

summary.bartcs: Summary for bartcs object

Description

Provide summary for bartcs object.

Usage

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

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.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab