imp_sampC: imp_sampC

Description Usage Arguments Value

View source: R/RcppExports.R

Description

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

Usage

1
imp_sampC(Y, X, V, iters, drawsd, betmat, m, pi, mu, sig, tau)

Arguments

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

Value

vector of weights to be used in importance sampling


bcallaway11/qrme documentation built on June 30, 2021, 12:52 p.m.