rgeomBCD | R Documentation |
Generates random samples from a bivariate geometric distribution (BGCD)
rgeomBCD(n, q1, q2, q3, seed = 123)
n |
number of samples to generate |
q1 |
probability parameter for |
q2 |
probability parameter for |
q3 |
dependence parameter, in |
seed |
seed for random number generation (default = 123) |
A data frame with two columns: 'X' and 'Y', containing the sampled values.
# Generate 100 samples
samples <- rgeomBCD(n = 100, q1 = 0.5, q2 = 0.5, q3 = 0.00001)
head(samples)
cor(samples$X, samples$Y) # Should be negative
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.