baRNB: Simulate NB using mu and phi instead of n and phi

View source: R/basim_tools.R

baRNBR Documentation

Simulate NB using mu and phi instead of n and phi

Description

Simulate NB using mu and phi instead of n and phi

Usage

baRNB(mu, phi, n = NULL, is.log = TRUE)

Arguments

mu

mean

phi

target for number of successful trials

n

(Optional) number of observations

is.log

logical; if TRUE, mu, phi are are given as log(mu) and log(phi)

Value

Negative Binomial Distribution with n as length of mu


olssol/cava documentation built on Aug. 30, 2023, 2:01 a.m.