Description Usage Arguments Value References See Also
The Metropolis-Hastings update step for the logistic regression parameters in the mixing proportions model, using a surrogate proposal distribution.
1 2 | updatetau(G, x.mix, lambda, Sigmag, Sigmag.inv, K, gammag, tau, counttau,
rho)
|
G |
The number of clusters being fitted. |
x.mix |
A matrix of covariates in the mixing proportions model (including dummy variables for any factor covariates), with a column of 1's appended at the front. |
lambda |
An n x G matrix of mixing proportions. |
Sigmag |
Covariance matrix of the multivariate normal prior for tau. |
Sigmag.inv |
The inverse of Sigmag. |
K |
The cluster membership vector. |
gammag |
Mean vector of the multivariate normal prior for tau. |
tau |
A matrix of logistic regression coefficients, with G rows and number of columns equal to the number of covariates in the mixing proportions model plus 1, for the intercept. |
counttau |
Counter for number of steps for which the proposed tau value was accepted. |
rho |
Scaling factor to be used to adjust the acceptance rate. |
A list:
The returned version of the tau parameter vector.
The returned version of the lambda matrix.
The count of the number of acceptances of tau to that point in the MCMC chain.
Isobel Claire Gormley and Thomas Brendan Murphy. (2010) A Mixture of Experts Latent Position Cluster Model for Social Network Data. Statistical Methodology, 7 (3), pp.385-405.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.