likgamma: Gamma Log Likelihood Function

Description Usage Arguments Details Value Examples

Description

The log likelihood of a gamma density with data, x, shape, rate and scale parameters.

Usage

1
likgamma(x, shape, rate = 1, scale = 1/rate, log = TRUE)

Arguments

x

vector of quantiles.

shape

shape and scale parameters. Must be positive, scale strictly.

rate

an alternative way to specify the scale.

scale

shape and scale parameters. Must be positive, scale strictly.

log

logical; if TRUE, probabilities/densities p are returned as log(p).

Details

The log likelihood is the log of a function of parameters given the data.

Value

A numeric scalar for the log likelihood of the gamma density given the data where shape, scale, and rate can be held constant or if vector were given vector will be returned.

Examples

1
2
likgamma(x = rgamma(n = 2, shape = 3),
        shape = 3)

likelihoodExplore documentation built on May 1, 2019, 10:21 p.m.