Description Usage Arguments Value
Function to update the allocations of regression coefficients to clusters in NPB model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
S |
allocation variable to update |
p |
number of parameters |
alpha.pi |
shape1 parameter for beta prior on pi0 |
beta.pi |
shape2 parameter for beta prior on pi0 |
beta |
regression coefficients corresponding to S |
theta |
clusters corresponding to S |
zeta |
other regression coefficients |
Y |
response |
W |
covariates |
gamma |
covariate regression coefficients |
X |
data for regression coefficients being updated |
Z |
data for regression coefficients NOT being updated |
sig2inv |
error precision |
phi2inv |
precision for theta |
mu |
mean for theta |
alpha |
DP parameter for theta |
iter |
MCMC iteration for debugging purposes |
vector of updated allocation variables that assign each regression coefficient (beta) to a specific cluster (theta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.