BinBlocRnd_LBM {bikm1}R Documentation

BinBlocRnd_LBM function for binary data matrix simulation

Description

Produce a data matrix generated under the Binary Latent Block Model.

Usage

BinBlocRnd_LBM(n,J,theta)

Arguments

n

a positive integer specifying the number of expected rows.

J

a positive integer specifying the number of expected columns.

theta

a list specifying the model parameters:

pi_g: a vector specifying the row mixing proportions.

rho_h: a vector specifying the matrix column mixing proportions.

alpha_gh: a matrix specifying the distribution parameter of the matrix.

Value

a list including the arguments:

x: simulated data matrix.

xrow: numeric vector specifying row partition.

xcol: numeric vector specifying column partition.

Examples

require(bikm1)
set.seed(42)
n=200
J=120
g=3
h=2
theta=list()
theta$pi_g=1/g *matrix(1,g,1)
theta$rho_h=1/h *matrix(1,h,1)
theta$alpha_gh=matrix(runif(6),ncol=h)
data=BinBlocRnd_LBM(n,J,theta)


[Package bikm1 version 1.1.0 Index]