likunif: Uniform Log Likelihood Function

Description Usage Arguments Details Value Examples

Description

The log likelihood of a uniform density with data, x, min and max parameters.

Usage

1
likunif(min = 0, max = 1, x, log = FALSE)

Arguments

min

lower and upper limits of the distribution. Must be finite.

max

lower and upper limits of the distribution. Must be finite.

x

vector of quantiles.

log

logical; if TRUE, probabilities p are given 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 uniform density given the data where min and max can be held constant or if vector were given vector will be returned.

Examples

1
likunif(x = runif(n = 2))

BenBarnard/likelihoodExplore documentation built on Dec. 4, 2019, 4:38 p.m.