Learn R Programming

epichains (version 0.1.1)

.rbinom_size: Samples size (the number of trials) of a binomial distribution

Description

Samples the size parameter from the binomial distribution with fixed x (number of successes) and p (success probability)

Usage

.rbinom_size(n, x, prob)

Value

A numeric vector of the sampled sizes.

Arguments

n

The number of samples to generate. Must be a positive integer.

x

The number of successes. Must be a positive integer.

prob

The probability of success. A numeric between 0 and 1.

Author

Sebastian Funk