ch.rgamma: A function to generate random numbers from a gamma...

View source: R/ch.rgamma.r

ch.rgammaR Documentation

A function to generate random numbers from a gamma distribution using the mean and sd as the input (rather than shape and scale)

Description

This function to generate random numbers from a gamma distribution using the mean and sd as the input (rather than shape and scale)

Usage

ch.rgamma(n, mean, sd)

Arguments

n

The number of observations.

m

The mean of the gamma distribution.

s

The standard deviation of the gamma distribution. '

Value

A vector of observations from the requested gamma distribution.

Examples

ch.rgamma (1000, 2, 0.5)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.