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 |
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:
thetat_B_list: Desc. A list of length num_stages with each element a vector of length B
sigmat_2B_list: Desc. A list of length num_stages with each element a vector of length B
beta_B: Desc. A list of length B
sigmay_2B: Desc. A list of length B