Random generation for some data distribution

simulateData(...)

# S3 method for bernoulli
simulateData(n, size, prob, ...)

# S3 method for bernoulliC
simulateData(n, size, prob, ...)

Arguments

...

S3 method compatibility

n

number of observations. If length(n) > 1, the length is taken to be the number required.

size

number of trials (zero or more).

prob

probability of success on each trial.