Learn R Programming

ARPobservation (version 1.2.2)

F_gam: Gamma distribution and related equilibrium distribution

Description

Random number generation from a gamma distribution and the related equilibrium distribution, for use with r_behavior_stream.

Usage

F_gam(shape)

Value

Object of class eq_dist with components r_gen and r_eq.

The function r_gen(n, mean) generates random deviates from a gamma distribution with specified mean and shape parameters.

The function r_eq(n, mean) generates random deviates from the equilibrium distribution corresponding to the gamma distribution with specified mean and shape parameters.

Arguments

shape

shape parameter

Examples

Run this code
hist(F_gam(2)$r_gen(1000, 3))
hist(F_gam(2)$r_eq(1000, 3))

Run the code above in your browser using DataLab