Learn R Programming

bpgmm (version 1.0.9)

getZmat: Tool for vector to matrix

Description

Tool for vector to matrix

Usage

getZmat(ZOneDim, m, n)

Value

adjacency matrix

Arguments

ZOneDim

a vector.

m

the number of cluster.

n

sample size.

Examples

Run this code
m <- 20
n <- 500
ZOneDim <- sample(seq_len(m), n, replace = TRUE)
#'
# \donttest{
getZmat(ZOneDim, m, n)
# }

Run the code above in your browser using DataLab