.rbinom_size {epichains}R Documentation

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)

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.

Value

A numeric vector of the sampled sizes.

Author(s)

Sebastian Funk


[Package epichains version 0.1.1 Index]