getZmat: Tool for vector to matrix

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Tool for vector to matrix

Usage

1
getZmat(ZOneDim, m, n)

Arguments

ZOneDim

a vector.

m

the number of cluster.

n

sample size.

Value

adjacency matrix

Examples

1
2
3
4
5
6
m <- 20
n <- 500
ZOneDim <- sample(seq_len(m), n, replace = TRUE)
#'

getZmat(ZOneDim, m, n)

bpgmm documentation built on July 2, 2020, 2:51 a.m.

Related to getZmat in bpgmm...