Description Usage Arguments Examples
Samples size (the number of trials) of a binomial distribution copied from https://github.com/sbfnk/bpmodels/blob/master/R/utils.r
1 | rbinom_size(n, x, prob, max_upscale)
|
n |
Numeric, number of samples to draw |
x |
Numeric, offset. |
prob |
Numeric, probability of successful trial |
max_upscale |
Numeric, maximum upscaling of cases allowed at each time point |
1 2 3 4 | x <- c(0:10)
prob <- pgamma(1:11, 4, 2)
rbinom_size(length(x), x, prob, max_upscale = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.