Learn R Programming

likelihoodExplore (version 0.1.0)

likunif: Uniform Log Likelihood Function

Description

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

Usage

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

Arguments

x

vector of quantiles.

min

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

max

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

log

logical; if TRUE, probabilities p are given as log(p).

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.

Details

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

Examples

Run this code
# NOT RUN {
likunif(x = runif(n = 2))
# }

Run the code above in your browser using DataLab