Learn R Programming

VBLPCM (version 2.4.9)

log_like_forces: create an initial configuration for the latent positions.

Description

This performs an iterative relaxation type algorithm to approximately find the positions of the nodes in the latent space that maximises the log-likelihood.

Usage

log_like_forces(net, D, X, B, m ,steps)

Value

Matrix of latent positions X

Arguments

net

network object on which to perform layout.

D

dimension of the latent space.

X

the initial guess for X

B

the intercept term.

m

usually N will suffice.

steps

maximum number of iteration steps.

Author

Michael Salter-Townshend

Details

Usually only used internally in vblpcmstart()

See Also

igraph::layout.fruchterman.reingold

Examples

Run this code
data(sampson)
N=network.size(samplike)
X=matrix(runif(N*2,-2,2),ncol=2)
XX=vblpcmcovs(N,"plain",as.sociomatrix(samplike))
out<-log_like_forces(samplike, 2, X, 0, m=N, 1e3)
plot(samplike,coord=out$X)

Run the code above in your browser using DataLab