View source: R/generate_data.R
Sample binary data (one sample)
1 | generate_data_prob(n = 100, prob = c(0.8, 0.8), R = diag(length(prob)))
|
n |
integer, sample size |
prob |
numeric, vector with marginal success probabilities |
R |
matrix, square correlation matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.