Skip to contents

This function is wrapper for rmvbin.

Usage

draw_data_prb(n = 100, pr = c(0.8, 0.8), R = diag(length(pr)))

Arguments

n

(numeric)
integer, sample size

pr

(numeric)
vector with marginal success probabilities

R

(matrix)
square correlation matrix

Value

(matrix)
matrix with n rows and length(pr) columns of randomly generated binary (0, 1) data