rbinomBCD | R Documentation |
Generates random samples from a bivariate binomial conditionals distribution (BBCD).
rbinomBCD(n, n1, n2, p1, p2, lambda, seed = 123, verbose = TRUE)
n |
number of samples to generate. |
n1 |
number of trials for |
n2 |
number of trials for |
p1 |
base success probability for |
p2 |
base success probability for |
lambda |
dependence parameter, must be positive. |
seed |
seed for random number generation (default = 123). |
verbose |
logical; if TRUE (default), prints progress updates and a summary. |
A data frame with columns 'X' and 'Y', containing the sampled values.
samples <- rbinomBCD(n = 100, n1 = 10, n2 = 10, p1 = 0.5, p2 = 0.4, lambda = 1.2)
head(samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.