kmeansU: K-mean clustering of latent node positions

View source: R/kmeansU.R

kmeansUR Documentation

K-mean clustering of latent node positions

Description

K-mean clustering of latent node positions

Usage

kmeansU(out, R = 2, n.cluster = 3, layer = 1, main = "")

Arguments

out

Output of networkchange objects.

R

Number of latent space dimensions

n.cluster

Number of latent cluster

layer

Layer id for the cluster analysis

main

Title

Value

A plot object

Examples


   ## Not run: set.seed(1973)
   ## generate an array with two constant blocks
   Y <- MakeBlockNetworkChange(n=10, shape=10, T=10, type ="constant")
   out0 <- NetworkStatic(Y, R=2, mcmc=10, burnin=10,
   verbose=10, UL.Normal = "Orthonormal")
   ## latent node positions
   kmeansU(out0)
   
## End(Not run)

NetworkChange documentation built on March 18, 2022, 7:52 p.m.