R/pltgamma.R

#### Plot the gamma distribution with the chosen parameters
pltgamma <- function (a, b) {
    x <- seq(0,20,000.1)
    y <- x ^ (a - 1) * exp((-x/b)) / ((b ^ a) * gamma(a)) 
    plot (x, y, type="s")
    }

Try the RCASPAR package in your browser

Any scripts or data that you put into this service are public.

RCASPAR documentation built on Nov. 8, 2020, 6:56 p.m.