Unif {estimators}R Documentation

Uniform Distribution

Description

Uniform Distribution

Usage

Unif(min = 0, max = 1)

## S4 method for signature 'Unif'
d(x)

## S4 method for signature 'Unif'
p(x)

## S4 method for signature 'Unif'
qn(x)

## S4 method for signature 'Unif'
r(x)

## S4 method for signature 'Unif'
mean(x)

## S4 method for signature 'Unif'
var(x)

## S4 method for signature 'Unif'
sd(x)

## S4 method for signature 'Unif'
skew(x)

## S4 method for signature 'Unif'
kurt(x)

## S4 method for signature 'Unif'
entro(x)

## S4 method for signature 'numeric,numeric,Unif'
ll(x, prm, distr)

## S4 method for signature 'numeric,Unif'
mle(x, distr)

## S4 method for signature 'numeric,Unif'
me(x, distr)

Arguments

min, max

numeric. The distribution parameters.

x

an object of class Unif. If the function also has a distr argument, x is a numeric vector, a sample of observations.

prm

numeric. A vector including the distribution parameters.

distr

an object of class Unif.

Value

The dpqr family of functions return the evaluated density, cumulative probability, quantile, and random sample, respectively. The moments family of functions return the appropriate theoretical moment, as calculated by the distribution true parameters. The ll function returns the evaluated log-likelihood, given a sample and the theoretical parameters. The estim family of functions return the estimated parameters of the distribution, given a sample. The avar family of functions return the asymptotic variance or variance - covariance matrix (if there are two or more parameters) of the corresponding estimation method. Calculus performed on Distribution objects returns a Distribution object of the appropriate class and with the appropriate parameters.


[Package estimators version 0.8.5 Index]