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