getZmat: Tool for vector to matrix

View source: R/utils.R

getZmatR 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)


bpgmm documentation built on June 2, 2022, 1:10 a.m.

Related to getZmat in bpgmm...