mcmcRunDP: mcmcRunDP: MCMC sampler for IV Analysis with Dirichlet...

Description Usage Arguments Value Author(s) Examples

Description

mcmcRunDP: MCMC sampler for IV Analysis with Dirichlet process mixture prior on the latent factors

Usage

1
mcmcRunDP(Yobs, Tr, X, Z, niter)

Arguments

Tr

: Binary numeric vector of treatment indicator.

X

: numeric matrix of covariates of dimension n-By-p

Z

: numeric vector of instrumental variable of length n

niter

: number of MCMC sampler to be run

Yobs:

Input numeric vector of observed outcome of length n, can be binary or continuous.

Value

runModel : list of posterior samples for each parameter, acceptance rate and tuning parameter

Author(s)

Sam Adhikari

Examples

1
## Not run: obj = mcmcRunDP(Yobs,Tr,X,Z,niter)

SamAdhikari/BayesIV_0.1 documentation built on May 24, 2019, 8:50 a.m.