compute_MC_draws_uvt {BayesRegDTR}R Documentation

Compute Monte Carlo Draws from Univariate Dataset

Description

Obtain Monte Carlo draws from posterior distribution of stagewise regression parameters

Usage

compute_MC_draws_uvt(
  Data,
  tau,
  num_treats,
  B,
  alph,
  gam,
  p_list,
  showBar = TRUE
)

Arguments

Data

Observed data organised as a list of \{y, X, A\} where y is a vector of the final outcomes, X is a list of matrices of the intermediate covariates and A is a matrix of the assigned treatments

tau

Prior precision scale. Should be specified with a small value

num_treats

Vector of number of treatment options at each stage

B

Number of MC draws

alph

Inverse-Gamma prior shape parameter for regression error variance of y. default: 1

gam

Inverse-Gamma prior rate parameter for regression error variance of y. default: 1

p_list

Vector of dimension for each stage

showBar

Whether to show a progress bar. Uses bar from progress_bar deafult: TRUE

Value

Monte Carlo draws??? A list containing:

  1. thetat_B_list: Desc. A list of length num_stages with each element a vector of length B

  2. sigmat_2B_list: Desc. A list of length num_stages with each element a vector of length B

  3. beta_B: Desc. A list of length B

  4. sigmay_2B: Desc. A list of length B


[Package BayesRegDTR version 1.0.1 Index]