getZmat {bpgmm} | R Documentation |
Tool for vector to matrix
Description
Tool for vector to matrix
Usage
getZmat(ZOneDim, m, n)
Arguments
ZOneDim |
a vector. |
m |
the number of cluster. |
n |
sample size. |
Value
adjacency matrix
Examples
m <- 20
n <- 500
ZOneDim <- sample(seq_len(m), n, replace = TRUE)
#'
getZmat(ZOneDim, m, n)
[Package bpgmm version 1.0.9 Index]