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)

Arguments

ZOneDim

a vector.

m

the number of cluster.

n

sample size.

Value

adjacency matrix

Examples

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

Run the code above in your browser using DataLab