imp_sampC | R Documentation |
return a vector of weights to be used in importance sampling note that, unlike mh_mcmcC, here the measurement error vector has already been drawn and all we need to do is compute weights
imp_sampC(Y, X, V, iters, drawsd, betmat, m, pi, mu, sig, tau)
Y |
vector of outcomes |
X |
matrix of covariates |
V |
vector of measurement errors |
iters |
number of Monte Carlo iterations |
drawsd |
the standard deviation for the standard normal draws in the MH algorithm |
betmat |
matrix of QR parameters |
m |
number of mixture components for measurement error |
pi |
mixture probabilities |
mu |
means of mixture components |
sig |
standard deviations of mixture components |
tau |
which values QR's have been estimated for |
vector of weights to be used in importance sampling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.