updatez {MEclustnet} | R Documentation |
Update step for the latent locations.
Description
A Metropolis-Hastings update step for the latent locations.
Usage
updatez(n, z, x.link, delta, beta, y, mu, K, sigma2, Id, pis, iter, uphill,
countz, delete, d, n.tilde)
Arguments
n |
The number of nodes. |
z |
The n x d matrix of latent locations. |
x.link |
Matrix, with |
delta |
Vector of Euclidean distances between locations in the latent space of all pairs of nodes. |
beta |
Vector of regression coefficients in the link probabilities. |
y |
Vector version of the adjacency matrix, with the diagonal removed. |
mu |
The G x d matrix of cluster means. |
K |
The cluster membership vector |
sigma2 |
The covariance of each cluster. |
Id |
A d dimensional identity matrix. |
pis |
A vector of length |
iter |
Iteration number. |
uphill |
Number of iterations for which uphill only steps in the MCMC chain should be run. |
countz |
Counter for number of steps for which the proposed z value was accepted. |
delete |
Index of the terms to be deleted in order to delete the diagonal terms from the vector version of the adjacency matrix. |
d |
The dimension of the latent space. |
n.tilde |
Length of the vector version of the adjacency matrix, with the diagonal removed i.e. |
Value
A list:
- z
The returned matrix of latent locations.
- delta
Vector of Euclidean distances between locations in the latent space of all pairs of nodes.
- pis
A vector of length
n^2 - n
providing the link probabilities between all pairs of nodes.- countz
Counter for z acceptance rate.
References
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.