simBin {BiplotML}R Documentation

Multivariate binary data

Description

Simulate a binary data matrix based on a latent variables model

Usage

simBin(n, p, k, D, C = 1)

Arguments

n

number of rows

p

number of columns

k

number of underlying dimensions in the model

D

sparsity control

C

variance control

Value

X: binary matrix, P: predicted matrix, Theta: matrix of natural parameters, A: row markers, B: column markers, mu: offset term, D: sparsity level, n: number of rows, p: number of columns

Author(s)

Giovany Babativa <gbabativam@gmail.com>

See Also

cv_LogBip

Examples

x <- simBin(n = 100, p = 50, k = 3, D = 0.5)

[Package BiplotML version 1.0.1 Index]