powered by
Jointly model social network with multivariate attributes
aplsm(Niter, Y.i, Y.ia, D, type)
number of iterations
N by N matrix containing the binary social network
N by M matrix containing the binary multivariate attributes
number of dimensions in the data
character indicating the types of model. It could be "DD", distance by distance model, "DV", distance by vector model, "VV", vector by vector model
list containing:
lsmhEZ.i (N x D) matrix containing the posterior means of the latent person positions
lsmhEZ.i
N
D
lsmhEZ.a (M x D) matrix containing the posterior means of the latent item positions
lsmhEZ.a
M
lsmhVZ.0 (D x D) matrix containing the posterior variance of the latent person positions
lsmhVZ.0
lsmhVZ.1 (D x D) matrix containing the posterior variance of the latent item positions
lsmhVZ.1
lsmhAlpha.0 scaler of mean of the posterior distributions of \(\alpha.0\)
lsmhAlpha.0
lsmhAlpha.1 scaler of mean of the posterior distributions of \(\alpha.1\)
lsmhAlpha.1
lsmhKL expected log-likelihood
lsmhKL
# NOT RUN { attach(french) a=aplsm(Niter=5,Y.i, Y.ia, D=2, type="DD") # }
Run the code above in your browser using DataLab