Description Usage Arguments Value Author(s) Examples
mcmcRunDP: MCMC sampler for IV Analysis with Dirichlet process mixture prior on the latent factors
1 | mcmcRunDP(Yobs, Tr, X, Z, niter)
|
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. |
runModel : list of posterior samples for each parameter, acceptance rate and tuning parameter
Sam Adhikari
1 | ## Not run: obj = mcmcRunDP(Yobs,Tr,X,Z,niter)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.