rbinomod: Internal function to generate random numbers following...

View source: R/internal_functions.R

rbinomodR Documentation

Internal function to generate random numbers following over-dispersed Bernoulli distribution, based in the BetaBinomial distribution. It currently does not work and standard Bernoulli distribution is actually used instead.

Description

Internal function to generate random numbers following over-dispersed Bernoulli distribution, based in the BetaBinomial distribution. It currently does not work and standard Bernoulli distribution is actually used instead.

Usage

rbinomod(n, prob, d = 1)

Arguments

n

integer. Number of observations.

prob

numeric. Probability of success on each trial.

d

numeric. Dispersion parameter.

Value

a vector with the simulated sample.


collin documentation built on Sept. 19, 2023, 5:06 p.m.