BinBlocRnd_MLBM {bikm1}R Documentation

BinBlocRnd_MLBM function for binary double data matrix simulation

Description

Produce two simulated data matrices generated under the Binary Multiple Latent Block Model.

Usage

BinBlocRnd_MLBM(n,J,K,theta)

Arguments

n

a positive integer specifying the number of expected rows.

J

a positive integer specifying the number of expected columns of the first matrix.

K

a positive integer specifying the number of expected columns of the second matrix.

theta

a list specifying the model parameters:

pi_g: a vector specifying the row mixing proportions.

rho_h: a vector specifying the first matrix column mixing proportions.

tau_l: a vector specifying the second matrix column mixing proportions.

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

beta_gl: a matrix specifying the distribution parameter of the second matrix.

Value

a list including the arguments:

x: simulated first data matrix. y: simulated second data matrix.

xrow: numeric vector specifying row partition.

xcolx: numeric vector specifying first matrix column partition.

xcoly: numeric vector specifying second matrix column partition.

Examples

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


[Package bikm1 version 1.1.0 Index]