draw_data_prb: Sample binary data (single sample)

View source: R/draw_data_prb.R

draw_data_prbR Documentation

Sample binary data (single sample)

Description

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


cases documentation built on April 3, 2025, 9:24 p.m.