Skip to contents

Samples the length of a transmission chain where each individual element is observed with binomial probability with parameters n (number of successes) and p (success probability)

Usage

rgen_length(n, x, prob)

Arguments

n

number of samples to generate

x

observed chain lengths

prob

probability of observation

Value

sampled lengths

Author

Sebastian Funk