rtgamma {babsim.hospital}R Documentation

rtgamma

Description

Random generation for the shifted and truncated Gamma distribution with parameters shape and scale.

Usage

rtgamma(n = 1, shape = 1, rate = 1, shift = 0, alpha = 0.95)

Arguments

n

number of observations

shape

Gamma shape parameter

rate

Gamma rate parameter

shift

shift parameter.

alpha

upper quantile of gamma distribution. All values above alpha are truncated.

Value

rtgamma generates random deviates. The length of the result is determined by n.

Examples


rtgamma(n = 1, shape = 1, rate = 1, shift = 1, alpha = 0.95)

[Package babsim.hospital version 11.8.4 Index]